chriscloyd Posted May 28, 2007 Share Posted May 28, 2007 how do i secure my php form fields Quote Link to comment https://forums.phpfreaks.com/topic/53221-form-secures/ Share on other sites More sharing options...
pocobueno1388 Posted May 28, 2007 Share Posted May 28, 2007 You should strip all the HTML tags, and probably use mysql_real_escape_string on them. strip_tags(mysql_real_escape_string($_POST['form_val'])) http://www.php.net/manual/en/function.mysql-real-escape-string.php www.php.net/strip_tags Quote Link to comment https://forums.phpfreaks.com/topic/53221-form-secures/#findComment-262954 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.