dfowler Posted January 29, 2008 Share Posted January 29, 2008 Hey guys, I've created a form that will allow users to edit information within a database. I know that in order to get a ' to work I have to add a \ before it. For example, if I wanted to enter "John's Boots" I would have to type "John\'s Boots" into the form to work. However, I will not be the one using this form. Is there a way to fix this so that other users who don't know any better will not get an error? Link to comment https://forums.phpfreaks.com/topic/88466-solved-form-insert-problem/ Share on other sites More sharing options...
themistral Posted January 29, 2008 Share Posted January 29, 2008 When you process the form on submit addslashes($_POST['fieldname']); Link to comment https://forums.phpfreaks.com/topic/88466-solved-form-insert-problem/#findComment-452866 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.