PHP预定义错误显示 [英] PHP pre-defined error displaying

查看:69
本文介绍了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)


这篇关于PHP预定义错误显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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