RE: [PHP] <input type="text" value="He said, "How do I get this t o work?", with a frown" size="50">

From: Date: Tue, 16 Mar 2004 20:16:24 +0000
Subject: RE: [PHP] <input type="text" value="He said, "How do I get this t o work?", with a frown" size="50">
Groups: php.general 
Request: Send a blank email to php-general+get-180596@lists.php.net to get a copy of this message
Ahh, because it's raw html and not in php. one choice would be to encapsulate it within php <input type="text" value="<?php echo "He said, \"How'm I gonna get this to work?\", with a frown";?>" size="50"> or <input type="text" value=<?php echo htmlspecialchars("He said, \"How'm I gonna get this to work?\", with a frown"); ?>" size="50"> or stay with RAW HTML and use the correct <input type="text" value="He said, &ldquo;How'm I gonna get this to work?&rdquo;, with a frown" size="50"> Warren Vail -----Original Message----- From: Chris W. Parker [mailto:cparker@swatgear.com] Sent: Tuesday, March 16, 2004 11:55 AM To: Vail, Warren; James E Hicks III; php-general@lists.php.net Subject: RE: [PHP] <input type="text" value="He said, "How do I get this to work?", with a frown" size="50"> Vail, Warren <mailto:Warren.Vail@schwab.com> on Tuesday, March 16, 2004 11:14 AM said: > <input type="text" value="He said, \"How'm I gonna get this to > work?\", with a > frown" size="50"> escaping does not work. chris.

« previous php.general (#180596) next »