My PHP will not work. I'm trying to use $_Post$_POST to collect information from the form and nothing is coming up.
Here is the HTML code:
<form action="test2.php" method="post">
First Name:<br />
<input type="text" name="firstname" /><br />
Last Name:<br />
<input type="text" name="lastname" /><br /><br /><br />
Address:<br />
<input type="text" name="address" /><br />
City:<br />
<input type="text" name="City" /><br />
Province:<br />
<input type="text" name="province" /><br /><br /><br />
Phone:<br />
<input type="text" name="phone" /><br />
Email<br />
<input type="text" name="email" /><br /><br /><br />
Select Desired Apartment: <br />
<input type="checkbox" name="type" value="onebed" />One Bedroom<br />
<input type="checkbox" name="type" value="twobed" />Two Bedroom<br />
<input type="checkbox" name="type" value="threebed" />Three Bedroom<br /><br /><br />
Rental Type:<br />
<input type="radio" name="renttype" value="weekly" />Weekly<br />
<input type="radio" name="renttype" value="monthly" />Monthly<br /><br /><br />
Start Date:<br /><input type="date" name="startingdate" /><br /><br /><br />
<input type="submit" value="Submit" />
</form>
Here is test2.php
<!DOCTYPE HTML>
<html>
<body>
Registration_Number: <br><br />
Name: <?php echo $_POST['firstname']; ?> <br><br />
Address: <?php echo $_POST['address']; ?> <br><br />
Email: <?php echo $_POST['email']; ?> <br><br />
Appartment_Type: <br><br />
Rental_Type: <br><br />
Starting_Date: <?php echo $_POST['startingdate']; ?> <br><br />
</body>
</html>
Thanks for the help!