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


daed17
08-25-2003, 04:47 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 using javascript?

pyro
08-25-2003, 04:49 PM
Use the PHP solution: http://forums.webdeveloper.com/showthread.php?s=&threadid=16097#post84481

daed17
08-25-2003, 06:24 PM
Thank you!!!

pyro
08-25-2003, 08:36 PM
No problem... :)