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 Quote Link to comment Share on other sites More sharing options...
pengu Posted August 12, 2010 Share Posted August 12, 2010 edit: nevermind.. special html chars Quote Link to comment 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); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.