| | |
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 |
advanced apache api array basics beginner binary broken cakephp check checkbox class cms code codingproblem combobox cookies cron curl database date datepart display dynamic echo email error file files folder form forms function functions google head href htaccess html image include includingmysecondfileinthechain insert ip javascript job joomla js limit link login mail menu mlm mobile multiple mysql nodes oop outofmemmory paging parse password paypal pdf php problem procedure query radio random recursion remote script search server sessions smarty sms source space sql stored syntax system table traffic tutorial unicode up-to-date update upload url validation validator variable video web webapplications youtube






