RE: [PHP] plus sign has changed to space after POST

From: Date: Tue, 19 Nov 2002 23:52:29 +0000
Subject: RE: [PHP] plus sign has changed to space after POST
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-125163@lists.php.net to get a copy of this message
> -----Original Message----- > From: bhkwan@ThoughtWorks.com [mailto:bhkwan@ThoughtWorks.com] > Sent: Tuesday, November 19, 2002 6:43 PM > To: php-general@lists.php.net > Subject: [PHP] plus sign has changed to space after POST > > After upgrade to 4.2.3, plus "+" sign has changed to space after POST. I > have checked the mailing list but can't find any help to turn this off > forever! is this a bug in PHP? > > thanks Spaces are encoded as plus signed or %20 in the URL, depending on the method you use. PHP will automatically urldecode() the values passed in the URL apparently. If you are trying to pass an actual + sign, you need to encode it with urlencode() or rawurlencode(). ---John Holmes...

« previous php.general (#125163) next »