Friends,
I'm new learning php thru a book "Beginning PHP, Apache, MySQL, Web, Development Mar 2004"
I was trying urlencode - I've inputted below in test1.php
<?php
$myname=urlencode("Imran Ali");
echo "<a href='http://www.abc.com/test2.php?yourname=$myname'>";
?>
abc.com is just an example - i used actual domain in coding.
and in test2.php
<?php
echo $yourname;
?>
but while running test1.php i'm receiving an error that is "Parse error: syntax error, unexpected '&' in /home6/researf7/public_html/test1.php on line 3"
i checked various times to match with given codes in book but there is no mistake.
Can you kindly help me where i'm wrong?
Thanks in advance.
Imran Ali