| | |
Please help with my code error
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2008
Posts: 39
Reputation:
Solved Threads: 1
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
The error is becoming a horror for me. Please help.
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
php Syntax (Toggle Plain Text)
<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>
O God! He that teaches man what he knows not, please grant us the solution.
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 is not terminated by a semicolon and there is an extra )
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")
Last edited by nav33n; Feb 24th, 2009 at 12:47 pm.
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
![]() |
Similar Threads
- C++: compile error "subscripted value is neither array nor pointer" (C++)
- I keep getting an error message on my computer called General Protection Exception... (C++)
- error message when compiling program (C++)
- Error in c++ program (C++)
- reading a file into code (Java)
- Error message help? (C++)
- Error listing files... (C++)
- Code 10 when I reinstalled the driver. (Troubleshooting Dead Machines)
- php error when using invision board (PHP)
- Need help with fixing this type of error in my XP pro PC (Windows NT / 2000 / XP)
Other Threads in the PHP Forum
- Previous Thread: Putting MySql val in drop menu and processing selection
- Next Thread: having problem with dirLIST
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access action ajax apache api array auto beginner binary broken cakephp checkbox class cms code cron curl database date destroy directory display domain download dynamic echo email error errorlog fatalerror file files folder form forms function functions google href htaccess html if-else image include insert integration ip java javascript joomla limit link load login loop mail masterthesis menu mlm mod_rewrite multiple mysql oop paypal pdf php popup problem query radio random record recursion regex remote script search security server sessions sms soap source space sql syntax system table tutorial update upload url validation validator variable video web xml youtube






