How can i fetch the data from the option-field and load the chosen option-field into the database ?
<div class="form-group col-md-5">
<label class="control-label">Date of birth:*</label>
<div class="form-group">
<div class="col-md-4">
<select type="text" class="form-control" id="day" >
<option>--Day--</option>
<?php
$day = array(range(1,31));
for ($i = 1; $i <= 31; $i++) {
echo "<option name='day'>".$i."</option>";
}
?>
</select>
</div>
<div class="col-md-4">
<select type="text" class="form-control" id="month">
<option>--Month--</option>
<?php
for ($i = 1; $i <= 12; $i++) {
echo "<option name='month'>".$i."</option>";
}
?>
</select>
</div>
<div class="col-md-4">
<select type="text" class="form-control" id="year">
<option>--Year--</option>
<?php
for ($i = 1900; $i <= 2016; $i++) {
echo "<option name='year'>".$i."</option>";
}
?>
</select>
</div>
</div>
</div>
I know i can use https://eonasdan.github.io/bootstrap-datetimepicker/ cause im using bootstrap. but there it's the same. i dont know how to fetch the choosen data.
<option name='year' value='$i'>".$i."</option>.. for day and month also