解析错误:语法错误,意外的 $end /path/php.module(74)
我正在制作一个带有验证码的表格,以便通过电子邮件将表格发送给我。 我编写了 PHP 代码,但出现错误:
Parse error: syntax error, unexpected $end /path/php.module(74) : eval()'d code on line 103
代码如下: http://pastebin.com/S2ZvdXTX
谁能告诉我发生了什么事吗?我的眼睛灼烧着,找不到那个问题,但我知道我已经接近它了。
顺便说一句,抱歉,我不是 PHP 专业人士。
I'm making a form with CAPTCHA to email me the form.
I made the PHP code but I'm having an error:
Parse error: syntax error, unexpected $end /path/php.module(74) : eval()'d code on line 103
Here is the code:
http://pastebin.com/S2ZvdXTX
Can anyone please tell me what's going on? My eyes are burning out, and can't find that problem, but I know I'm near to it.
BTW, I'm sorry, I'm not a professional with PHP.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
最后需要额外的
}
。{
必须与}
匹配。You need an extra
}
at the end.A
{
must be matched with a}
.看起来就像里面的另一个 } 一样简单。您从未在第一个
else
之后关闭if
Ya looks like it is just as simple as another } in there. You never closed the
if
right after that firstelse
您没有关闭您的
丢失的
(最后
)更正的代码
http://pastebin.com/djb8pNQ6
还有很多 phpformatters,例如 http://phpformatter.com 这会有所帮助
You did not closed your
(you're missing
at the end)
corrected code
http://pastebin.com/djb8pNQ6
there are also many phpformatters such as http://phpformatter.com which would help
有时,由于缺少 '{}' ,会发生这种情况。
为此,您只需从上到下彻底检查代码即可。
sometime this occours due to missing '{}' .
for this you only have to thoroughly chech the code up to downward.