Add a Movie

Help us decide which movie to show at our next Movie Club night!






"; } else { $title = $_POST["title"]; } if (empty($_POST["dateOfRelease"])) { echo $dateOfReleaseErr = "Please enter the date of release

"; } else { $dateOfRelease = $_POST["dateOfRelease"]; } if (empty($_POST["length"])) { echo $lengthErr = "Please enter the length of the movie in minutes - no decimals

"; } else { $length = $_POST["length"]; } $int = "length"; $min = "2"; $max = "3"; if(filter_var($int, FILTER_VALIDATE_INT, array ("options" => array("min_range" < $min, "max_range" > $max))) === false) { echo ("Please enter a minimum of two digits, or a maximum of three digits for the movie length

"); } else { echo(""); } if (!isset($_POST["genre"])) { echo $genreErr = "You must select a genre from the drop-down list

"; } else { $genre = $_POST["genre"]; } if (empty($_POST["directorFirstName"])) { echo $directorFirstNameErr = "Please enter the first name of the director

"; } else { $directorFirstName = $_POST["directorFirstName"]; } if (empty($_POST["directorLastName"])) { echo $directorLastNameErr = "Please enter the last name of the director

"; } else { $directorLastName = $_POST["directorLastName"]; } if (empty($_POST["directorGender"])) { echo $directorGenderErr = "Please select gender of director from the drop-down list

"; } else { $directorGender = $_POST["directorGender"]; } if (empty($_POST["directorNationality"])) { echo $directorNationalityErr = "Please select the nationality of the director from the drop-down list

"; } else { $directorNationality = $_POST["directorNationality"]; } if (empty($_POST["producerFirstName"])) { echo $producerFirstNameErr = "Please enter the first name of the producer

"; } else { $producerFirstName = $_POST["producerFirstName"]; } if (empty($_POST["producerLastName"])) { echo $producerLastNameErr = "Please enter the last name of the producer

"; } else { $producerLastName = $_POST["producerLastName"]; } if (empty($_POST["producerGender"])) { echo $producerGenderErr = "Please select gender of producer from the drop-down list

"; } else { $producerGender = $_POST["producerGender"]; } if (empty($_POST["producerNationality"])) { echo $producerNationalityErr = "Please select nationality of producer from the drop-down list

"; } else { $producerNationality = $_POST["producerNationality"]; } if (empty($_POST["starFirstName"])) { echo $starFirstNameErr = "Please enter the first name of the star

"; } else { $starFirstName = $_POST["starFirstName"]; } if (empty($_POST["starLastName"])) { echo $starLastNameErr = "Please enter the last name of the star

"; } else { $starLastName = $_POST["starLastName"]; } if (empty($_POST["distributor"])) { echo $distributorErr = "Please select the distributor from the drop-down list

"; } else { $distributor = $_POST["distributor"]; } if (empty($_POST["selectstarRating"])) { echo $selectStarRatingErr = "Please select your star rating from the drop-down list



"; } else { $selectStarRating = $_POST["selectStarRating"]; } } ?>
"> Movie Title: Date of release: Length (in mins - no decimals): Genre:



Director:


First Name: Last Name: Gender: Nationality:



Producer


First Name: Last Name: Gender: Nationality:



Star


First Name: Last Name:



Distributor (e.g. Sony Pictures):






Your star rating:


      



" .$message; "

" ?>