haku87 Posted February 8, 2008 Share Posted February 8, 2008 I have a input field use to edit questions.. I will like to prevent character like '\' and ' for security issue Quote Link to comment https://forums.phpfreaks.com/topic/90025-special-character/ Share on other sites More sharing options...
Stooney Posted February 8, 2008 Share Posted February 8, 2008 Are you trying to say you have a field who's value is run through an sql query and you want it sanitized of bad characters? If so then... $var=mysql_real_escape_string($_POST['var']); Quote Link to comment https://forums.phpfreaks.com/topic/90025-special-character/#findComment-461564 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.