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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.