use urlencode()
www.php.net/urlencode
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-----Original Message-----
From: Tom Harris [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 4: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]