PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am trying to set up a form on one of my web sites, i am very new to PHP programing. I set it up with a method of post, and it is being submitted to an e-mail. However when you try to go to the page, which is questions.php you get a response "Parse error: parse error, unexpected T_ELSE in /home/content/r/s/c/rscrwc/html/questions.php on line 111" Does this have to do with the PHP that i wrote or do i need to set up a database and have the database work with the information to submit it to me?
Any help would be greatly appreciated. Thank you
Line 111 of the page is the tag } else{
You probably didn't end some other statement before starting the "else" or you have an "else" where it shouldn't be. Please show us the entire code, just that section doesn't help.
That is the entire PHP code.... everything else is the form on the page .... the error has to be in the code there, what do you mean a ; at teh end of each line does that mean at the end of the actual line or each peice of code like after the Post
You need an if statement to see if the form has been submitted. Without seeing the HTML I can't really tell you how to do this. BTW, this is what he means by putting semicolons at the end of each line (VERY IMPORTANT IN PROGRAMMING, EVERY SINGLE LANGUAGE [that i know of] USES THIS!)