... così:
La chiamata è questa:codice:function F(valore, f) { switch(valore) { case "Offerta": f.pulsante.value="Nome"; f.offerta.value=f.T1.value; f.T1.value=""; break; case "Nome": f.pulsante.value="Invia"; f.nome.value=f.T1.value; f.T1.value=""; break; case "Invia": f.submit(); break; } }
<input name="pulsante" type="button" id="pulsante" value="Offerta" onClick="F(this.value, this.form);">
Ovviamente 'nome' e 'offerta' sono due campi hidden.
Ciao !![]()