I am using the following form
<section id="formSection">
<form id="dataForm" action="addUser.php" method="post">
<div>
<h2>Add Product:</h2>
<lable>First Name:</lable>
<input class="inputForm" id="inputFirstName" type="text" name="firstname">
</div>
<div>
<lable>Last Name:</lable>
<input class="inputForm" id="inputLastName" type="text" name="lastname">
</div>
<div>
<lable>Address: </lable>
<input class="inputForm" id="inputAdress" type="text" name="address">
</div>
<div>
<lable>Post Code:</lable>
<input class="inputForm" id="inputPostcode" type="text" name="postcode">
</div>
<div>
<lable>Delievery Type:</lable>
<input class="inputForm" id="inputDelievery" type="text" name="delievery">
</div>
<input type="submit">
</form>
</section>
and the following php code to add entries from the form to the database.
$FirstName = $_POST[firstname];
$LastName = $_POST[lastname];
$address = $_POST[address];
$postcode = $_POST[postcode];
$delivery = $_POST[delievery];
$sql = "INSERT INTO USERS (FIRSTNAME, SECONDNAME, ADDRESS, POSTCODE, DELIVERY_TYPE)
VALUES ('$FirstName', '$LastName', '$address', '$postcode', '$delivery')";
$conn->exec($sql);
However it is not working, and having stared at the screen for the last 2 hours trying to fix it.