How is the best way to block the following chars in the form submit?
<? and ?>
For example, if a user submits
Name: <? die(); ?>
it will not display nothing but it will accept the submit...
I would like to know the best form to block this.
block <? and ?> on form submit
Moderator: General Moderators
that shouldn't be a problem...
but run htmlentities() on your form input.
or if you don't want it to display at all...
but run htmlentities() on your form input.
or if you don't want it to display at all...
Code: Select all
$data = str_replace(array('<?','<?php','?>'),'',$_POST['field']);Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.