RE: [PHP] <input type="text" value="He said, "How do I get this to work?", with a frown" size="50">
| From: | Hidayet Dogan | Date: | Tue, 16 Mar 2004 20:09:13 +0000 |
| Subject: | RE: [PHP] <input type="text" value="He said, "How do I get this to work?", with a frown" size="50"> | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180595@lists.php.net to get a copy of this message | ||
Replacing with " HTML entitiy may be enough.
For ex:
<?
$value = str_replace("\"", """, $value);
echo "<input type=\"text\" value=\"$value\">";
?>
Or <input type="text" value="<?=$value ?>">
Good luck,
Hidayet Dogan
hidayet.dogan@pleksus.com.tr
Pleksus Bilisim Teknolojileri D.T.O. A.S.
----------------------------------------------------------
caldiran sok. 14/6 06420 kolej ankara * www.pleksus.com.tr
tel : +90 312 4355343 * faks: +90 312 4354006
On Tue, 16 Mar 2004, Chris W. Parker wrote:
> 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.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>