UTHTent Posted March 9, 2015 Share Posted March 9, 2015 Hey guys, I keep getting an error can anyone help me? ( ! ) Parse error: syntax error, unexpected '{', expecting '(' in C:\wamp\www\unit4\les6\PO1verwerken.php on line 69 I'm using Wamp. PHP File :http://pastebin.com/sBYV0ajA HTML File: http://pastebin.com/tWWHXZ4x Link to comment https://forums.phpfreaks.com/topic/295193-php-help/ Share on other sites More sharing options...
maxxd Posted March 9, 2015 Share Posted March 9, 2015 As the error states, your syntax is wrong. You're probably missing a closing parenthesis before your opening brace on line 69. Link to comment https://forums.phpfreaks.com/topic/295193-php-help/#findComment-1507951 Share on other sites More sharing options...
Psycho Posted March 9, 2015 Share Posted March 9, 2015 if ($_POST["taal"] == "ICT") { echo ("ICT-opleidingen zijn vol. Kies een andere opleiding."); } elseif { echo ("Uw opleiding: ") . $_POST["OG"]; } An elseif() statement requires a condition. Perhaps you meant to use just an else statement Do this: if($foo == 'one') { //Do something } elseif ($foo == 'two) { //Do something else } Or this: if($foo == 'one') { //Do something } else { //Do something else } Link to comment https://forums.phpfreaks.com/topic/295193-php-help/#findComment-1507952 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.