I want to make a form where the user can choose what he would like to answer.
The only problem here is the input type="date". Even if this kind of input is untouched, my code is creating a row in my database. Making me a row with a blank. I tried to put value="" in my input type="date" but that doesn't work. This is the only kind of input that bother me, the others input type don't create any row if the user don't enter anything.
Here is the input I want to create no row in my db if it's not filled:
<form action="<?php echo base_url('tbl_reponse/submit') ?>" method="post" class="form-horizontal">
...
<input name="date" type="date" class="form-control">