0
I am creating a form that contains a field whose data type is DATE, where I want a certain value returned by default. But there’s nothing I can do to make it happen. My code is this:
<?php $ini = date('d-m-Y'); ?>
<form id="form1" name="form1" method="post" action="">
<label for="inicio" style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#666666;">
De</label> <input type="date" name="date_form" id="inicio" size="7" value="<?php echo $ini; ?>" />
a
<label for="label">Fim</label>
<input type="text" name="textfield2" id="label" />
</form>
good field type date gets a specific type of formatting that I can’t remember now to pass you
– Bruno H.