Ver Mensaje Individual
  #6 (permalink)  
Antiguo 27/04/2011, 12:32
Avatar de stramin
stramin
 
Fecha de Ingreso: marzo-2008
Ubicación: Cubil felino
Mensajes: 1.652
Antigüedad: 16 años, 1 mes
Puntos: 336
Respuesta: Problema con GET o POST en formulario con PHP

intenta así:

Código Javascript:
Ver original
  1. <form action="<?php echo $url_actual ?>" method="POST" onSubmit="this.action=this.action+'&bz='+document.getElementById('bz').value" enctype="multipart/form-data" style="width:420px; height:30px; float:left">
  2. Buscar por zona:<input name="bz" id="bz" type="text" size="22" maxlength="50" align="left"/>
  3. <input type="submit" value="Buscar Zona:" style="background-color:#FFCC00" />
  4. </form>

eso agregará la variable que quieres al final de la url, sin embargo no se por que prefieres hacerlo así, creo que el método de abismael y gran patriarka te vendrían mejor.