RE: [PHP] Passing values containing a ? and a &
| From: | PHPBeginner.com | Date: | Sat, 24 Feb 2001 06:16:21 +0000 |
| Subject: | RE: [PHP] Passing values containing a ? and a & | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41447@lists.php.net to get a copy of this message | ||
use urlencode()
www.php.net/urlencode
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
maxim@phpbeginner.com
www.phpbeginner.com
-----Original Message-----
From: Tom Harris [mailto:stry_cat@yahoo.com]
Sent: Friday, February 23, 2001 4:12 AM
To: php-general@lists.php.net
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: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net