Re: Escaping Quotations In <INPUT> tag
| From: | Jay Beaton | Date: | Sun, 10 Dec 2000 05:42:09 +0000 |
| Subject: | Re: Escaping Quotations In <INPUT> tag | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29542@lists.php.net to get a copy of this message | ||
What you want is htmlentities()
http://www.php.net/manual/function.htmlentities.php
Use it like:
<INPUT TYPE=TEXT NAME=DUMMY VALUE="<? print htmlentities($sYourText)
?>">
See ya,
JRB
LeagueOffice.com Fantasy Sports
------------------------------------------
http://www.leagueoffice.com
as cool as fantasy sports get...
------------------------------------------
Jeff Gannaway <webmaster@cactusgraphics.com> wrote:
>
> At 05:45 AM 12/10/00 +0100, Dimo Velev wrote:
> >Hi,
> >Sorry I am new to PHP and HTML, but wouldn't the following solve
your
> >problem:
> ><INPUT TYPE=TEXT NAME=DUMMY VALUE='Hello "How Are You"'>
> >with me it works fine and is pretty simple :)
> >dimo
>
> That would work great... except there could also be ' in the text
like...
> <INPUT TYPE=TEXT NAME=DUMMY VALUE='Hello "How Are Y'all"'>
>
> Am I just trying to do the impossible here???
>
> Thanks,
> Jeff
--
ls