Jump to content

Small PHP syntax error causion MAJOR ANNOYANCE


cpd

Recommended Posts

Baisically, i have made my biggest script ever for inputting into a database etc etc. I keep getting the petty error of

 

Parse error: syntax error, unexpected ';' in C:\xampp\htdocs\c9\careers\sendmapplication.php on line 37

 

After many hours of staring point blank at the same lines of code im offering it to someone to see if they can spot the mistake coz i DEFINATELY cant.

 

    } elseif($_POST['email'] != $_POST['cemail']) {
      header('location: ../index.php?content=join&error=The+emails+were+not+the+same&mname='.$_POST['name'].'&mpilotid='.$_POST['pilotid'].'&memail='.$_POST['email'].'&mcemail='.$_GET['cemail'].'&mpassword='.$_POST['password'].'&mcpassword='.$_POST['cpassword'].'&mvatsimid='.$_POST['vatsimid'].'&mivaoid='.$_POST['ivaoid'].'&mhours='.$_POST['hours'].'&mproof='.$_POST['proof'].'&mjob='.$_POST['job'].'&msuitjob='.$_POST['suitjob'].'&mwhatcan='.$_POST['whatcan'].'&mcomments='.$_POST['comments']);
    } elseif($_POST['password'] != $_POST['cpassword']) {
      header('location: ../index.php?content=join&error=The+passwords+were+not+the+same&mname='.$_POST['name'].'&mpilotid='.$_POST['pilotid'].'&memail='.$_POST['email'].'&mcemail='.$_GET['cemail'].'&mpassword='.$_POST['password'].'&mcpassword='.$_POST['cpassword'].'&mvatsimid='.$_POST['vatsimid'].'&mivaoid='.$_POST['ivaoid'].'&mhours='.$_POST['hours'].'&mproof='.$_POST['proof'].'&mjob='.$_POST['job'].'&msuitjob='.$_POST['suitjob'].'&mwhatcan='.$_POST['whatcan'].'&mcomments='.$_POST['comments']);
    } else {
      

 

That is lines 34 through to 39...

 

If someone can spot it after like less then 2 mins of look at it...im amazed.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.