I need to insert into MySQL as January 2021 - April 2021 using the form as shown in the image. But when I save it is inserted into MySQL as 2021-01 - 2021-04. How to save input type=month as month name? I have searched for the solutions but the solutions did not fit my need.
<th class="td-info">Semester semasa:</th>
<td>
<input type="month" name="startSem" required> - <input type="month" name="finishSem" required>
<p style="color: gray">eg: Januari 2020 - Mei 2021</p>
</td>
In PHP I create a new variable to combine two input type=month
$currentSem = $_POST['startSem'] . " - " . $_POST['finishSem'];
In MySQL, I use varchar instead of DATE