02-16-2018, 09:08 PM
Yeah. Every once in a while it makes sense to not do it. You can just use $_POST['form_field_name'];
A lot depends on what you're going to do with that data. If you aren't sanitizing on the way in, you might want to consider sanitizing on the way out when you're displaying the code itself. Especially if it is somewhere where your users are entering content that will be displayed. You don't want them to be able to write javascript in there that gets renedered
A lot depends on what you're going to do with that data. If you aren't sanitizing on the way in, you might want to consider sanitizing on the way out when you're displaying the code itself. Especially if it is somewhere where your users are entering content that will be displayed. You don't want them to be able to write javascript in there that gets renedered