This question already has an answer here:
Currently trying to write data from my dropdown menu to a field on my database. All the text fields are populating perfectly, but not sure why the drop down data isn't.
</div>
This question already has an answer here:
Currently trying to write data from my dropdown menu to a field on my database. All the text fields are populating perfectly, but not sure why the drop down data isn't.
</div>
You have invalid syntax here.
$returned = $_POST['returned']; // This returns null.
You can always change your loans
table of the $returned
field to nullable.
OR, you can just fix it by replacing..
<select>
<option value="No"> No </option>
<option value="Yes"> Yes</option>
</select>
To
<select name="returned">
<option value="No"> No </option>
<option value="Yes"> Yes</option>
</select>