Ok I have a dropdown list, and I'd like to store the chosen option to the database through a variable defined on the beginning of the code:
$campus_name = isset($_POST['campus']) ? asi($_POST['campus']) :"";
The code for the dropdown list is as follows:
<select name="campus" id="campus">
<option>Choose</option>
<option value="1">Belaruz</option>
<option value="2">Normdale</option>
So how do I store that to the table campus using the variable $campus_name to store it?