解析错误:语法错误,第12行的C:\ wamp \ www \ AdultEducation \ MemberRegistration.php中出现意外的')' [英] Parse error: syntax error, unexpected ')' in C:\wamp\www\AdultEducation\MemberRegistration.php on line 12
本文介绍了解析错误:语法错误,第12行的C:\ wamp \ www \ AdultEducation \ MemberRegistration.php中出现意外的')'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<?php <br mode="hold" /?>
if(isset($_POST['submit']))
{
/***********************************************************************
Your Sample Code is here
***********************************************************************/
//This makes sure they did not leave any field blank
if(!$_POST['Username']|!$_POST['Password']|!$_POST['F_Name']|!$_POST['L_Name']|
!$_POST['Gender']|!$_POST['year']|!$_POST['month']|!$_POST['day']|!$_POST['street']|
!$_POST['City']|!$_POST['Code']|!$_POST['Country']|!$_POST['Email']|)
{
die('You did not complete all of the required fields');
}
/********************************************************************************************************************************
My Changes are here *********************************************************************************************************************************/
if(empty($_POST['Username']) || empty($_POST['Password']))
{
die('You did not complete all of the required fields');
}
}
?>
推荐答案
_POST ['submit'])) { /***************************************************** ********************** 您的示例代码在这里 ****************************************************** *********************/ //确保他们没有将任何字段留空 if(!
_POST['submit'])) { /*********************************************************************** Your Sample Code is here ***********************************************************************/ //This makes sure they did not leave any field blank if(!
_POST ['Username'] |!
_POST['Username']|!
_POST ['Password'] |!
_POST['Password']|!
这篇关于解析错误:语法错误,第12行的C:\ wamp \ www \ AdultEducation \ MemberRegistration.php中出现意外的')'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文