passing php variables with special characters
| From: | BENNETTM at cnbrown dot com | Date: | Mon, 03 Jul 2000 21:37:46 +0000 |
| Subject: | passing php variables with special characters | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-839@lists.php.net to get a copy of this message | ||
Hello from a php newbie,
How do I pass php variables that have special characters
like spaces, pound signs, etc to other html pages?
For example,
If I have a php line that reads:
echo "<a href=\"order.html?prod=$prod_desc\">$prod_desc</a>";
and $prod_desc can contain values like:
"#3 Item"
"LIFE SAVERS BULK"
"JOHNSON & JOHNSON"
when I view the variable results from the called page all I see is the
text to the first space (or nothing in the case of the first one nothing
because of the pound sign).
Anyone know?
Thanks for any valid input.