Quotes in inputfields & Reload
| From: | Jens Nedal | Date: | Mon, 12 Mar 2001 10:24:17 +0000 |
| Subject: | Quotes in inputfields & Reload | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-43446@lists.php.net to get a copy of this message | ||
Hy everybody,
Well here is the deal (Probably an easy one 8))
I have several inputfields and check if the are valid or have content.
If an error occurs and the page reloads i simply echo the content of the
fields back into the input fields, viola, wonderful.
BUT if there are " eg. Quotes in those fields they suddenly read \" instead
of " as they should 8(
I guess that the parser is doing something to it there since " is a
sensitive char in php. BUT how can i get the content to be reloaded
correctly into the fields again.
Here an example of how those fields look like
<input type=text name=v_email value="<?php echo($v_email); ?>" size=40>
tried it like this too, no difference:
<input type=text name=v_email value="<?php echo("$v_email"); ?>"
size=40>
thx in advance, Jens Nedal