Menu
When trying to pass a string from one page to another, if the string contains white-spaces, only the part of the string before the first white-space is passed to another page.
For example:
page1.php
…
$str = “Hello Annette”;
echo “<a href=”page2.php?str=”.$str.”>Hello</a>”;
page2.php
..
$srt = $_GET[`str’];
echo “String:”.$str;
…
The result of this echo is only “Hi”. So the passed string becomes “Hi” instead of “Hi Annette”.
Please advise.