Ciao a tutti, vorrei passare i dati di un Form1 in un secondo Form2.
Cerco di spiegarmi meglio, io ho il form1 seguente:
---------------------------------------------------------------------
<form name="contactform1" method="post" action="form2.htm">
<table width="315" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="testo"><select name="colore" id="select3">
<option>Scegli un colore</option>
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
</select></td>
<td width="120">
<input type="button" name="Submit" value="Invia" onclick="checkContactForm()">
<span class="testo"> </span></td>
</tr>
</table>
</form>
---------------------------------------------------------------------
Vorrei passare il valore scelto dalla select "colore" al Form2 che è il segente:
---------------------------------------------------------------------
<form action="" method="post" name="form2" id="form2" onSubmit=invia>
<table width="246" border="0" cellspacing="5" cellpadding="2">
<tr>
<td width="77"><div align="left">Colore:</div></td>
<td width="138"><div align="left"><?php print("$_POST[colore]");?></ div></td>
</tr>
</table>
<input type="submit" name="Submit" value="Invia">
<div align="right"><span ></span></span> </span> </div>
</form>
---------------------------------------------------------------------
Allora come si puo vedere dal codice html, io ho fatto puntare il Form1 alla pagina form2, contenente il form2, e poi ho inserito il codice : <?php print("$_POST[colore]");?></ per far stampare il valore della select.
Purtroppo tutto ciò (che forse è possibile solo nella mia fantasia) non funziona.Infatti quando clicco sul tasto invio del Form1, mi da questo errore "The requested method POST is not allowed for the URL /form2.htm."
Allora prima di abbandonare l'idea chiedo il vostro aiuto.