Re: How to escape " in hidden field?

From: Date: Tue, 03 Sep 2002 12:11:04 +0000
Subject: Re: How to escape " in hidden field?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-115017@lists.php.net to get a copy of this message
Try HTMLSpecialChars function. http://www.php.net/htmlspecialchars Regards, Jan ----- Original Message ----- From: "Martin Thoma" <martin@radiok2r.de> To: <php-general@lists.php.net> Sent: Monday, September 02, 2002 11:59 AM Subject: [PHP] How to escape " in hidden field? > 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 > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > >

« previous php.general (#115017) next »