PHP预定义错误显示
问题描述:
我在我的网站上创建了一个表单,但由于某种原因,该表单的3个部分无法正确提交。点击提交后,我在屏幕上收到此信息:
''我们非常抱歉,但是您提交的表单中发现了错误。这些错误如下所示。
您输入的RAID似乎无效。
您输入的附件似乎无效。
您输入的保证似乎无效。
请返回并修正这些错误。''
这是表单的PHP:
I have created a form on my website but for some reason 3 sections of the form arenot submitting correctly. After clicking submit I recieve this on screen:
''We are very sorry, but there were error(s) found with the form you submitted. These errors appear below.
The RAID you entered do not appear to be valid.
The Accessories you entered do not appear to be valid.
The Guarantee you entered do not appear to be valid.
Please go back and fix these errors.''
This is the PHP for the form:
展开 | 选择 | Wrap | 行号
答
可以打印出来无效值?
这是RAID字段的PHP部分,以及rel显而易见的HTML。
This is the PHP sections for the RAID field, as well as the relevant HTML.
展开 | 选择 | Wrap | 行号
几乎在每种情况下,您都将有效答案标记为无效。
突袭:
- 值(strlen):突袭(4),Y(1),N(1)
配件:
- 值(strlen):0(1),1(1),...,6(1),其他(5)
保证:
- 值(strlen):保证(9),0(1),1(1),2(1)
in pretty much every case, you mark valid answers as invalid.
Raid:
- values (strlen): raid (4), Y (1), N (1)
Accessories:
- values (strlen): 0 (1), 1 (1), … , 6 (1), Other (5)
Guarantee:
- values (strlen): guarantee (9), 0 (1), 1 (1), 2 (1)