How to escape " in hidden field?
| From: | Martin Thoma | Date: | Mon, 02 Sep 2002 09:59:43 +0000 |
| Subject: | How to escape " in hidden field? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-114891@lists.php.net to get a copy of this message | ||
Hello!
I have a simple hidden input-field like
<INPUT TYPE="HIDDEN" VALUE="Hello world" NAME="Message">
Now sometimes I need to insert " like:
<INPUT TYPE="HIDDEN" VALUE="Hello \"world\""
NAME="Message">
But this makes PHP (or the browser?) cutting of the string after "Hello
". How can I escape the "?
Martin