RE: [PHP] How to escape " in hidden field?

From: Date: Tue, 03 Sep 2002 01:27:30 +0000
Subject: RE: [PHP] How to escape " in hidden field?
Groups: php.general 
Request: Send a blank email to php-general+get-114965@lists.php.net to get a copy of this message
Hi Martin You can also do this <INPUT TYPE="HIDDEN" VALUE="Hello &quot;world" NAME="Message"> HTH Martin :) -----Original Message----- From: Tom Rogers [mailto:trogers@kwikin.com] Sent: Tuesday, September 03, 2002 11:24 AM To: Martin Thoma Cc: php-general@lists.php.net Subject: Re: [PHP] How to escape " in hidden field? 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#114965) next »