消除字符串 - 静默丢弃数据 [英] Eliminate String - Discard Data Silently

查看:88
本文介绍了消除字符串 - 静默丢弃数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我能够正确地描述这个,但我继承了一个js的表单并传递给php mail()函数。我也是javascript的新手。我通常在php中将所有表格都扔进mysql。


1)我有一个字段用于电话号码,并且由于该网站涉及国际数字,国家代码和可能使用不同语法输入的人,我需要将其保留为文本框。入口。


2)有一个用户(或机器人)持续输入 1233456 的某个值,每天最多可增加50+。


3)以下是唯一正在进行的检查:

展开 | 选择 | Wrap < span class =codeDivider> | 行号

解决方案

< blockquote>这显然是一个php问题?那么我应该把它移到适合您的论坛吗?你可以在这里使用javascript做一些验证...但是当用户/机器人只是禁用它然后数据被传递到服务器...所以它应该在那里检查...

亲切的问候


是的,请做......抱歉..


jim


没问题......完成;)


I hope I am able to describe this properly, but I inherited a form that is js and passes to a php mail() function. I''m pretty new to javascript also. I usually do all my forms in php tossing into mysql.

1) I have one field which is for "phone number", and due to the fact that this site deals with international numbers, country codes and people that possibly enter with a different syntax, I need to keep it as a "text box" entry.

2) There is one user ( or bot ) that keeps entering a certain value of 1233456 and this adds up to 50+ per day.

3) Below is the only checking that is being done:

Expand|Select|Wrap|Line Numbers

解决方案

this is obviously a php-question? so should i move that to the appropriate forum for you? you could do some validation with javascript here ... but when the user/bot just disables it then the data are passed to the server ... so it should be checked there in any case ...

kind regards


Yes, please do...and sorry..

jim


no problem ... done ;)


这篇关于消除字符串 - 静默丢弃数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆