
Form Com Actions Diferentes
#1
Posted 18/06/2007, 11:40
<form action="???????????????????" method="GET" name="banco" target="_blank">
<input name="prazo" type="hidden" size="5" value="3"/>
<input name="banco1" type="hidden" size="10" value="<?php echo $order->info['total'] = substr($order->info['total'],2,-1); ?>"/>
<input name="sacado" type="hidden" size="30" value="<?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br>'); ?>"/>
<input name="endereco_sacado" type="hidden" size="30" value="<?php echo sprintf($HTTP_GET_VARS['order_id']); ?>"/>
<input name="order_id" type="hidden" id="order_id" size="10" value="<?php echo sprintf($HTTP_GET_VARS['order_id']); ?>"/>
<input name="sacado_id" type="hidden" id="sacado_id" size="10" value="<?php echo sprintf($HTTP_GET_VARS['order_id']); ?>"/>
<input type="image" src="imprima.gif" value="Clique Aqui" />'
</form></td>
#2
Posted 18/06/2007, 16:51
<form action="teste.php" name="form_"> <input type="radio" name="teste" value="pagina.php" onclick="document.forms[this.form.name].src=this.value" /> <button onclick="alert(document.forms[this.form.name].src)">Veja o SRC atual</button> </form>
Faz o teste ae.

Yeah I do have some stories, and it's true I want all the glory ...
#3
Posted 18/06/2007, 17:03

<script>
function entrada() {
if(document.form.select.value=="action1") {
document.form.action="php1.php"
document.form.method="post"
document.form.target="_top"
}
if(document.form.select.value=="action2") {
document.form.action="php2.php"
document.form.method="post"
document.form.target="_top"
}
if(document.form.select.value=="action3") {
document.form.action="php3.php"
document.form.method="post"
document.form.target="_top"
}
}
</script>
<form name=form onSubmit="return entrada()">
<input type=text name=campotal>
<select name=select size=1>
<option>Escolha</option>
<option value=action1>um</option>
<option value=action2>dois</option>
<option value=action3>três</option>
<input type=submit>
</form>
mesmo assim obrigado pela resposta,
Edição feita por: Marcelo_73, 18/06/2007, 17:05.
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)