且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

数组操作,仅允许文本字段中的数字条目

更新时间:2023-01-28 13:57:25

检查

_POST变量。[php] echo"< pre>&quot ;;

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

Expand|Select|Wrap|Line Numbers

Check your


_POST variable.[php]echo "<pre>";
print_r(


_POST);
echo "</pre>";[/php]

And use is_int.[php]if (!is_int(


上一篇 : :无法确定当前目录下一篇 : graphviz中headlabel和taillabel的不同颜色

相关阅读

技术问答最新文章