Appear date automatically when creating form

1

I have this code:

 <p><h5><strong>Data de Atribuição</strong></h5> <input id="DataAtribuicao" type="text" name="DataAtribuicao" value='<?php echo date("d/m/Y"); ?>'>

But I wanted the same but where type="date" and the day's date automatically appears.

    
asked by anonymous 09.01.2018 / 20:43

1 answer

0

Your input is with value written wrong.

Try this in your .php file and test it at your local location:

<input type="date" value="<?php echo date("Y-m-d");?>">
    
09.01.2018 / 22:53