Re: How to escape " in hidden field?

From: Date: Tue, 03 Sep 2002 01:23:33 +0000
Subject: Re: How to escape " in hidden field?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-114964@lists.php.net to get a copy of this message
Hi, Monday, September 2, 2002, 7:59:43 PM, you wrote: MT> Hello! MT> I have a simple hidden input-field like MT> <INPUT TYPE="HIDDEN" VALUE="Hello world" NAME="Message"> MT> Now sometimes I need to insert " like: MT> <INPUT TYPE="HIDDEN" VALUE="Hello \"world\"" MT> NAME="Message"> MT> But this makes PHP (or the browser?) cutting of the string after "Hello MT> ". How can I escape the "? MT> Martin Try this with single quotes: <INPUT TYPE="HIDDEN" VALUE='Hello "world"' NAME="Message"> -- regards, Tom

« previous php.general (#114964) next »