Modernvox Posted February 25, 2010 Share Posted February 25, 2010 if(isset($_POST['submit'])) if (!$_POST['name'] || !$_POST['state'] || !$_POST['city'] || !_POST['email'] || !$_POST['username'] || !$_POST['password'] || !$_POST['confirm_password'] ) { die('You did not complete all of the required fields'); } Link to comment https://forums.phpfreaks.com/topic/193386-unexpected-on-line-3-but-i-dont-see-it/ Share on other sites More sharing options...
aebstract Posted February 25, 2010 Share Posted February 25, 2010 if(isset($_POST['submit'])) { if (!$_POST['name'] || !$_POST['state'] || !$_POST['city'] || !_POST['email'] || !$_POST['username'] || !$_POST['password'] || !$_POST['confirm_password'] ) { die('You did not complete all of the required fields'); } } Missing { on line 1. Added extra } to end also.. not sure if you have it closed somewhere or not? Link to comment https://forums.phpfreaks.com/topic/193386-unexpected-on-line-3-but-i-dont-see-it/#findComment-1018153 Share on other sites More sharing options...
Modernvox Posted February 25, 2010 Author Share Posted February 25, 2010 if(isset($_POST['submit'])) { if (!$_POST['name'] || !$_POST['state'] || !$_POST['city'] || !_POST['email'] || !$_POST['username'] || !$_POST['password'] || !$_POST['confirm_password'] ) { die('You did not complete all of the required fields'); } } Missing { on line 1. Added extra } to end also.. not sure if you have it closed somewhere or not? Awesome. Thought the if (isset['submit'])) didn't need { if it was running the entire script.... Thanks again, brother Link to comment https://forums.phpfreaks.com/topic/193386-unexpected-on-line-3-but-i-dont-see-it/#findComment-1018159 Share on other sites More sharing options...
Modernvox Posted February 25, 2010 Author Share Posted February 25, 2010 Yeah..Still shows same error though? Link to comment https://forums.phpfreaks.com/topic/193386-unexpected-on-line-3-but-i-dont-see-it/#findComment-1018160 Share on other sites More sharing options...
Mchl Posted February 25, 2010 Share Posted February 25, 2010 !_POST['email'] Link to comment https://forums.phpfreaks.com/topic/193386-unexpected-on-line-3-but-i-dont-see-it/#findComment-1018183 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.