Jump to content

Unexpected '[' on line 3, but I don't see it?


Modernvox

Recommended Posts

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?

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.