cpd Posted November 2, 2008 Share Posted November 2, 2008 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. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted November 2, 2008 Share Posted November 2, 2008 The posted code by itself does not generate that error. Post at least 10 lines before the } elseif ... line. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.