Re: handling encoded form data

From: Date: Tue, 17 Oct 2000 14:03:18 +0000
Subject: Re: handling encoded form data
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-20635@lists.php.net to get a copy of this message
Hey Alan: > I want to know whether there is a built in function to turn the special > format for form data (where the space is a +) back into the original input. > I am not sure if urldecode is the right function, and I do not know the > difference between rawurldecode and urldecode. Also, urldecode doesn't say > anything about decoding the +, it just mentions decoding the hex values. Can > someone point me in the right direction? Thanks. The + sign is just in the URL. You can obtain the variable just by using the variable name. For example, if your form element name was "address", then the variable handed to the receiving script would be $address. If you want to actually manipulate the stuff inside the URL, then yes, urldecode() is what you want: urldecode($REQUEST_URI); Enjoy, --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.general (#20635) next »