El codigo del formulario de la primera pagina es:
Código HTML:
<form id="form1" name="form1" method="post" action="test.php"> <select name="tipeofinsurance"> <option value="AutoInsurance" selected="selected">Auto Insurance</option> <option value="LifeInsurance">Life Health</option> <option value="CommercialInsurance">Commercial</option> <option value="HomeInsurance">Home</option> </select> <input name="textfield" type="text" class="inpIns" /> <input type="image" value="enviar" name="enviar" src="images/go.gif" /> </form>
Código PHP:
<?php
if(isset($_POST['enviar']))
{
$zipcode=($_POST['textfield']);
$typeinsurance=($POST['tipeofinsurance']);
}
?>
<body>
<form id="form1" name="form1" method="GET" action="">
<?php
echo($zipcode);
echo($typeinsurance);
?>
</form>
</body>