Code:
<input type="date" id="data" name="data" value="<?php echo $dataPost = $_GET['data']; ?>" required>
The question is: Can you make a condition if
before value
within input
?
For example:
if($x == $a){
//mostra o value dentro do input igual acima.
}else{
//mostra o value vazio.
}
Would you do it? Or some other way?