Hello,

I wonder why I get this error:

Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')' in C:\xampp\htdocs\squprime\registration1.php on line 65

line 65:  if(!empty($stu_fname && $stu_lname && $stu_email && $stu_telp && $stu_skype)){

Thanks before.

As far as I know empty() only takes one variable. The error is complaining about ALL of the && in your code, not any particular one.

if(!empty($stu_fname )&& ($stu_lname) && ($stu_email) && ($stu_telp && $stu_skype)){

try :)
mark question as solved.

if(!empty($stu_fname) &&
   !empty($stu_lname) && 
   !empty($stu_email) && 
   !empty($stu_telp)  && 
   !empty($stu_skype) )  {

pzuurveen and hericles are correct. You must evaluate all them

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.