阅读背景:

您应该在HTML表单文本字段中检查什么?

来源:互联网 

I'm writing a PHP script to grab text box data from a submitted form. These are simple text boxes and I don't want to accept any HTML tags. I think I should at least use strip_tags() and addslashes(). Anything else? I wouldn't mind restricting the input to alphanumerics, should I use a regular expression to seek out nonstandard characters?I'm writing a PHP script to grab text box data




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: