PDA

View Full Version : Problem with a .php page



tiger1
10-07-2004, 02:32 PM
Hi,

Any chance that someone might be able to help with a bit of php coding?

I am trying to add a hyperlink to a word on a.php page:

"Please click HERE for for details"
and I would like to hyperlink the word HERE

The page was find until I added,
Please click HERE (http://www.mydomainxxxxx.co.uk/link-back.php) for details.

Which brought out this error message:
Parse error: parse error, expecting `','' or `';'' in /home/xxxx/public_html/member_join.php on line 191

What did I do that was wrong?
Did I leave out ....
`',''
somewhere???

Thanks.

php~pro
10-07-2004, 04:18 PM
<?php

echo "Please click <a href=\"http://www.mydomainxxxxx.co.uk/link-back.php\">HERE</a> for details.";

?>

or


<?php

print "Please click <a href=\"http://www.mydomainxxxxx.co.uk/link-back.php\">HERE</a> for details.";

?>

Read up on echo, print, and learn how to escape for html output with php.

tiger1
10-08-2004, 12:16 PM
Thanks - yes, I had the opening and/or closing quotes all over the place.
All sorted.