URLs must be encoded if they contain special characters (and should be
encoded always). See urlencode().
-jm
-----Original Message-----
From: Tom Harris [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 11:12 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Passing values containing a ? and a &
I want to assign a value using the url however the value contains both a ?
and an & so PHP (or the browser) seems to get confused.
Here's an example:
http://www.mysite.com/index.php?id=23&url=http://www.anothersite.com/file.ph
p?qid=234&forum=4
Everything after url= should be the value of $url but this is not the case.
Is there a way to solve this?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]