On Friday, April 12, 2002, at 06:06 PM, Heidi Belal wrote:
> if uses enter double quotes my html gets mixed up and
> considers the users quote to be the end of the output
> value for the input field.
> now what do i do? how can i prevent that from
As a rule of thumb, you should never ever cross-post to so many
newsgroups or mailing lists! Just asking here on the PHP list alone
will get you the answer to this question.
That said, the PHP developers have created a function that can escape
the quotes for you -- it is called "addslashes()". Read the man pages
for addslashes() and stripslashes() at www.php.net for information on
You may also be able to set the gpc_magic_quotes setting in your php.ini
on your server, but using addslashes() and stripslashes() allows you to
fine-tune your control.
Web Developer Temp
Media Lab, H.H. Brown
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php