essjay_d12 Posted May 4, 2008 Share Posted May 4, 2008 Hi I am trying to be able to insert quotes into a input box then Update my sql table - but it doesnt seem to insert the quotes or anything after them into my table? How can I include this feature? I know it works fine with a textarea - but I also need it to work for an insert box as well Any ideas? CHeers, S Quote Link to comment Share on other sites More sharing options...
dooper3 Posted May 4, 2008 Share Posted May 4, 2008 Try using the php function addslashes when processing the form on the input field before trying to insert the data into the database. You may have to use stripslashes when retrieving it though. Quote Link to comment Share on other sites More sharing options...
essjay_d12 Posted May 4, 2008 Author Share Posted May 4, 2008 I tried that and it does the same thing? Quote Link to comment Share on other sites More sharing options...
essjay_d12 Posted May 4, 2008 Author Share Posted May 4, 2008 actually now it if i put tes"t converts to .. tes\ ? Quote Link to comment Share on other sites More sharing options...
DarkWater Posted May 4, 2008 Share Posted May 4, 2008 mysql_real_escape_string() Quote Link to comment 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.