Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/07/2004, 13:12
Avatar de claudioif
claudioif
 
Fecha de Ingreso: julio-2004
Mensajes: 19
Antigüedad: 19 años, 9 meses
Puntos: 0
Pregunta Una de botones...

Hola: A ver si alguien me puede dar una manito ...

En el formulario (Ver mas abajo) Tengo que controlar cual de los botones fue presionado, ya que si se hace un click en "Agregar|Modificar" hoteles debera carga un formulario con una lista de hoteles disponibles para agregar al paquete.

<?
if (!$HTTP_POST_VARS){ // Si no recibe valores
principal_form();
} else {
// En este else, necesito saber cual de los botones del formulario se ha clickeado...
}
}


function principal_form()
{
?>
<form action="altafuncion.php" method=post>
<table width="346" height="136" border="0" align="center" cellpadding="6" cellspacing="2">
<tr>
<td width="330" height="26">
<div align="left">
<p><span class="Estilo11">Destino:</span>
<input name="destino" type="text" id="destino" size="55">
</p>
</div></td>
</tr>
<tr>
<td width="330" height="26"><p><span class="Estilo11">Vigencia:</span>
<input name="vigencia" type="text" id="vigencia" size="55">
</p> </td>
</tr>
<tr>
<td height="26"><span class="Estilo11">Condiciones Generales:</span>
<textarea name="condiciones" cols="42" rows="6" id="condiciones"></textarea></td>
</tr>
<tr>
<td width="330" height="26"><span class="Estilo11">Programa Base:</span>
<input name="programabase" type="text" id="programabase" size="55"></td></tr>
<tr>
<td width="330" height="26">
<div align="left">
<span class="Estilo11">Hoteles:</span>
<input name="hoteles" type="text" id="programabase3" size="55">
</div></td>
</tr>
<tr>
<td valign="top"><div align="right">
<input name="hoteles" type="submit" id="hoteles" value="Agregar|Modificar">
</div></td>
</tr>
<tr>
<td width="330" valign="top"> <span class="Estilo11">Excursiones:</span> <input name="escursiones" type="text" id="escursiones" size="55"> </td>
</tr>
<tr>
<td valign="top"><div align="right">
<input type="submit" name="Submit2" value="Agregar|Modificar">
</div></td>
</tr>
<tr>
<td valign="top"><span class="Estilo11">Comisi&oacute;n:</span> <br>
<select name="comision" id="comision">
<option>13.5 %</option>
</select></td>
</tr>
<tr>
<td valign="top"><span class="Estilo11">Descuento por movilidad propia:</span>
<input name="descuentomovilidad" type="text" id="descuentomovilidad" size="55"></td>
</tr>
<tr>
<td valign="top"><div align="right">
<input type="submit" name="Submit23" value="Crear Plan">
</div></td>
</tr>
</table>
<div align="center"></div>
</form>
<div align="center">
<?
}
?>

Gracias por su tiempo... AGUANTE EL FORO!!!
__________________
-=|Claudio!F|=-