I'm aware of how to protect against SQL injections & stuff & validating user input... but was wondering if you are taking data from a user input field & the data is a string how safe is this data to use inside your code for stuff like:
if ($i == $_POST['userinput']) {
....
}
The above is just an example at trying to get across my question at asking what steps you need to take & in what circumstances.
Obviously it wouldn't work in the above instance, but just trying to prevent people doing something like an include('whatever.php'); etc.