Double quotes in form fields and submitting them
| From: | webapprentice | Date: | Fri, 22 Mar 2002 23:45:47 +0000 |
| Subject: | Double quotes in form fields and submitting them | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-89778@lists.php.net to get a copy of this message | ||
Hi,
I have a form with a text field, say userName.
I put a value in that has double quotes (i.e. "foobar") and submit this form.
On output I have this:
<?php echo $HTTP_POST_VARS["userName"]; ?>
The output ends up being a \.
How do I keep the double quotes?
Thanks,
Stephen