I keep on getting this message:

Parse error: syntax error, unexpected T_ECHO in /home/lsschnln/public_html/Registration Form/quiz_regedit_2.php on line 32
after running the script

<html>
<body><?php
if (isset($_POST['submit']))
  {
  $to = "quizentry@lagosschoolsonline.net" ;
  $subject = "Quiz Entry" ;
  $SchoolName = $_POST['SchoolName'] ; 
  $SchoolAddress = $_POST['SchoolAddress'] ;
  $Locality = $_POST['Locality'] ;
  $MobileNumber = $_POST['MobileNumber'] ;
  $Landphone = $_POST['Landphone'] ;
  $email = $_POST['email'] ;
  $website = $_POST['website'] ;
  $ContactPerson = $_POST['ContactPerson'] ;
  $MarketerInCharge = $_POST['MarketerInCharge'] ;
  $Username = $_POST['Username'] ;
  $Password = $_POST['Password'] ;
  // SECTION B
  $malecandidate = $_POST['malecandidate'] ;
  $ddm = $_POST['ddm'] ;
  $mmm = $_POST['mmm'] ;
  $yym = $_POST['yym'] ;
  $Refnumberm = $_POST['Refnumberm'] ;
  //FEMALE
  $femalecandidate = $_POST['femalecandidate'] ;
  $ddf = $_POST['ddf'] ;
  $mmf = $_POST['mmf'] ;
  $yyf = $_POST['yyf'] ;
  $Refnumberf = $_POST['Refnumberf'] ;
  $message = $_POST('$SchoolName','$SchoolAddress','$Locality','$MobileNumber','$Landphone','$email','$website','$ContactPerson','$MarketerInCharge','$Username','$Password','$malecandidate','$ddm','$mmm','$yym','Refnumberm','$femalecandidate','$ddf','$mmf','$yyf','$Refnumberf') ;
  mail($to,$subject,$message)
  echo  "Your entries have been submitted.Thank you." ;
  }
else
  echo "Form not properly completed")?>
</body>
</html>

The error is becoming a horror for me. Please help.

2 errors. 1st one is on line 30. $message = $_POST('$SchoolName',....
2nd error, there is no ; after mail function. Please check this for the correct syntax of mail function!

Edit: Also, this

echo "Form not properly completed")

is not terminated by a semicolon and there is an extra )

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.