there is no brace after $_POST[description], so it should look like this: if ((!$_POST[title]) || (!$_POST) || (!$_POST[description]) || (!$_POST[category]) || (!$_POST[region])) {
If array index is a string, it must be in quotes: // Wrong $title = $_POST[title]; // Correct $title = $_POST['title']; PHP: