Possible Duplicate:
Alphabetic equivalent of PHP is_numeric
Veri bir sayı olup olmadığını kontrol ederseniz, biz is_numeric kullanın:
if(!isset($_POST['rnum'])||trim($_POST['rnum'])==""){echo "Error:Enter Room Number!";
echo '<input type="button" value="Back" onClick="history.go(-1);return true;">';
}else if(!is_numeric(trim($_POST['rnum']))){echo "Error: Enter A Numeric Value!";
echo '<input type="button" value="Back" onClick="history.go(-1);return true;">';
die();
}
Nasıl? Dize olup olmadığını kontrol ya da girilen verilerin sadece harfleri olduğunu beklemiyordum hakkında