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? Quote 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']); Quote Link to comment https://forums.phpfreaks.com/topic/88466-solved-form-insert-problem/#findComment-452866 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.