I haven't started testing yet, but this is the code I've got for filtering/sanitizing the one and only user input field: $name = trim(stripslashes(strip_tags(filter_var($_POST['name'], FILTER_SANITIZE_STRING))));
$name = trim(stripslashes(strip_tags(filter_var($_POST['name'], FILTER_SANITIZE_STRING))));
Thanks for the link - that will be helpful when I do start testing.
Now, parameterized queries - that's something I don't know about yet....
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I haven't started testing yet, but this is the code I've got for filtering/sanitizing the one and only user input field:
$name = trim(stripslashes(strip_tags(filter_var($_POST['name'], FILTER_SANITIZE_STRING))));
Thanks for the link - that will be helpful when I do start testing.
Now, parameterized queries - that's something I don't know about yet....