-2
but where you type the zip code, you’re not typing anything, how do I rescue the zip typed in a variable with $post ? and in the calculus I wanted to redirect to calculus.php,something similar to this:
<input name="postok" type="button" id="postok" value="Calcular" onClick="calculoFrete();">
someone can help?
here is the code:
echo'<form action="" method="post">';
echo'<tr><td colspan = "4" bgcolor = "ffffff"></td align = "center"><h4>Tipo de Entrega <select id = "tipo" name = "tipo" title = "Servicos dos Correios" class = "select" tabindex = "1"></h4><option value = "PAC" style = "font-size: 25px;">PAC</option><option value = "SEDEX" style = "font-size: 25px;">SEDEX</option>
</select><br />Informe aqui o Cep para calcular o frete:<input name="cepDestino" style = "font-size: 18px;" autocomplete = "off" type="text" id="cepDestino"><br /><td>';
echo'</td><input type = "submit" id = "pesquisar" name ="pesquisar" style = "font-size: 18px;" autocomplete = "off" tabindex = "2" class="button" value = "calcular"/></form></td';
echo '<tr>';
always include source code in your questions
– Adriano Luz
If you are not using ajax, you have to set the form destination in the action:
<form action="calculo.php" method="post">
– Bacco