newyear498 Posted August 12, 2010 Share Posted August 12, 2010 I need to pass info to a php script via link while ignoring the character '&' for example: mywebsite.com/myphp.php?info=thisInformation&thecharacter& is there anyway I can tell php to ignore the character '&' and just read it as text (cause I understand its a special character.. maybe something like in XML you can ignore the character & by using <![CDATA[ ]]> thanks!!! much appreciated!!! PS: this is a must.. since in the end I am passing links.. and urls.. that are like amazon.com/blah&blah Link to comment https://forums.phpfreaks.com/topic/210502-php-get-method-using-special-character/ Share on other sites More sharing options...
pengu Posted August 12, 2010 Share Posted August 12, 2010 edit: nevermind.. special html chars Link to comment https://forums.phpfreaks.com/topic/210502-php-get-method-using-special-character/#findComment-1098373 Share on other sites More sharing options...
petroz Posted August 12, 2010 Share Posted August 12, 2010 You can encode it before you pass it... $data = http://example.com/?foo=bar&bar=foo urlencode($data); Link to comment https://forums.phpfreaks.com/topic/210502-php-get-method-using-special-character/#findComment-1098389 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.