"foobar" becomes simply \
I've lost foobar AND the double quotes. Is there a way to keep them all?
----- Original Message -----
From: "Miguel Cruz" <[EMAIL PROTECTED]>
To: "webapprentice" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, March 23, 2002 7:49 PM
Subject: Re: [PHP] Double quotes in form fields and submitting them
> On Fri, 22 Mar 2002, webapprentice wrote:
> > 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
> > On output I have this:
> > <?php echo $HTTP_POST_VARS["userName"]; ?>
> > The output ends up being a \.
> The quotes go away, or they just get a backslash before them? If the
> latter, try <?= stripslashes($HTTP_POST_VARS['userName']) ?>
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php