Salve sono di nuovo a chiedere aiuto al forum, ho una form di inserimento dati e mi piacerebbe che il campo data si compilasse automaticamente se il campo precedente è compilato.
Vorrei fare una cosa del genere...
Ovviamente così non funziona, mi da errore qui
Grazie per l'aiuto
Max61
Vorrei fare una cosa del genere...
PHP:
Ricevute
<input type="text" onfocus="this.style.backgroundColor='#f0fff0'" onblur="this.style.backgroundColor='#ffffff'" name="ricevute" value="" style="color:black; font-family:arial; font-size: 11pt"; maxlength="8" size="8" placeholder="" autofocus>
<?php
if ($Ricevute <> ''){
$DataRiconsegnaRicevute = date('d-m-Y');
?>
Data
<input name="DataRiconsegnaRicevute" type="date" onfocus="this.style.backgroundColor='#f0fff0'" onblur="this.style.backgroundColor='#ffffff'" value="<?php echo $DataRiconsegnaRicevute; ?>" size="40" maxlength="200" >
<?php
} else {
?>
Data
<input name="DataRiconsegnaRicevute" type="date" onfocus="this.style.backgroundColor='#f0fff0'" onblur="this.style.backgroundColor='#ffffff'" value="" size="40" maxlength="200" >
<?php
}
PHP:
if ($Ricevute <> ''){
Max61
Ultima modifica: