Click to See Complete Forum and Search --> : " and ' issues


daed17
08-25-2003, 04:44 PM
When a user enters a text message using the text box or textarea and the user enters " or ' php inserts / the first time and /// the second time into the message.

Example... user enters: what's this?
php shows : what\'s this (first time)
php shows : what\\\'s this (second time value is passed)


Is there an easy way to fix this?

pyro
08-25-2003, 04:46 PM
Yes, use stripslashes() (http://www.php.net/stripslashes)...

daed17
08-25-2003, 07:15 PM
thank you again!!!

pyro
08-25-2003, 08:36 PM
You bet... :)