更新时间:2023-01-28 13:57:25
检查
_POST变量。[php] echo"< pre>" ;;
p rint_r(
_POST);
echo"< / pre>"; [/ php]
并使用 is_int 。[php] if(!is_int(
Hi all,
I have one webpage in which people can order books online.
i have one array - book , in which i have stored all different types of books.
Now, I dont want the user to order any garbage ( just numerical entry and not alphabetics ) .
How can I do so ??
I have used following code , but dint work proper
Check your
_POST variable.[php]echo "<pre>";
print_r(
_POST);
echo "</pre>";[/php]
And use is_int.[php]if (!is_int(