RE: [PHP] Passing values containing a ? and a &

From: Date: Thu, 22 Feb 2001 19:24:36 +0000
Subject: RE: [PHP] Passing values containing a ? and a &
Groups: php.general 
Request: Send a blank email to php-general+get-41198@lists.php.net to get a copy of this message
URLs must be encoded if they contain special characters (and should be encoded always). See urlencode(). -jm -----Original Message----- From: Tom Harris [mailto:stry_cat@yahoo.com] Sent: Thursday, February 22, 2001 11: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

« previous php.general (#41198) next »