Re: email address Bill%40domain.com, "hello+world"

From: Date: Sat, 22 May 2004 21:03:37 +0000
Subject: Re: email address Bill%40domain.com, "hello+world"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-186770@lists.php.net to get a copy of this message
Bill Freeburg wrote:
A previous program is passing an email address to my code via method=post. When I print it, it looks like "bill%40Domain.com" instead of Bill@Domain.com. Also, text comes in as "Hello+World" instead of "Hello World". What's going on? I'm obviously missing something. I can't wait until I'm furthur along the learning curve. Bill
The text is being url-encoded. You can use urldecode() to get it back to normal. This is normally done automatically by the script, though... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#186770) next »