I am trying to use this string in a link;
$test="Henrik Erlandsson";
This is the link;
echo "<A HREF=page.php?tester='$test'>Tester</A>
The link only contains 'Henrik
But the page source contains 'Henrik Erlandsson'
How do I solve it?
Thanks!
what i think is happening is that you don't have your quotes around what you're href'ing... so instead of taking Erlandsson as part of the link, it's thinking that Erlandsson is one of the a-href variables.
Try this instead:
echo "<a href=\"page.php?tester=$test\">Tester</a>";
try rawurlencode($test);