Here is a code. Whenever I submits anything the output says it's alphanumeric help me to get out of here.
<?php
$string ="$_POST[in]";
if(ctype_alnum($string))
{
echo "'{$string}' is alphanumeric!";
} else {
echo "'{$string}' is NOT alphanumeric!";
}
?>
<form action="alphanum.php" method="post">
<h1>Make Input:<input name="in"><span><input type="submit" value="Check"></span></h1>
</form>