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 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']); Link to comment https://forums.phpfreaks.com/topic/90025-special-character/#findComment-461564 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.