"John Taylor-Johnston" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have created an .inc that allows me to click on a submit to show the
next or previous 25 records found etc. The problem is that if $searchenquiry
includes a quotation mark, the html looks like:
>
> <input type="hidden" name="searchenquiry" value=""atwood's" -margaret\">
>
> Is there a function to encode $searchenquiry to do this?
>
> <input type="hidden" name="searchenquiry"
value="&quot;atwood's&quot; -margaret\">
>
> Or should I URLencode $searchenquiry or ... how should I approach this?
>
> <input type=\"hidden\" name=\"searchenquiry\"
value=\"".$searchenquiry."\">
>
> John

Hi John,

you are looking for htmlentities():
http://de3.php.net/htmlentities

Regards, Torsten Roehr

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to