faqts : Computers : Programming : Languages : PHP : Common Problems : Forms and User Input

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 10 people (20%) answered Yes
Recently 0 of 5 people (0%) answered Yes

Entry

How do you deal with quotes when populating a form with DB information?

Mar 21st, 2000 19:30
Ben Munoz, Dave Mitchell,


Look into stripslashes.  This will probably clean up your data before 
you insert it into form fields.
http://www.php.net/manual/function.stripslashes.php3