urldecode adds slashes 3 times on a single quote. Why?
| From: | Andy | Date: | Sat, 23 Mar 2002 16:41:11 +0000 |
| Subject: | urldecode adds slashes 3 times on a single quote. Why? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-89905@lists.php.net to get a copy of this message | ||
Hi there, I want to transfer a message back to the form if an error occures.
Therefore I am encoding the message and afterwards decoding. Works fo far
with one exeption. The single quote is slashed 3 times.
Example:
$message = That's great!
Code:
example.php?message=".urlencode($message)."
<textarea name="message" rows="10" cols="53"
wrap="virtual">'.urldecode($message).'</textarea>
Result:
That\\\'s great!
So whats wrong? I can't see the mistake.
Thanx for any help
Andy