Imprimir resultado de un menu desplegable
| From: | Daniel Geldres Castro | Date: | Sat, 13 Jul 2002 04:24:29 +0000 |
| Subject: | Imprimir resultado de un menu desplegable | ||
| References: | 1 2 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-24915@lists.php.net to get a copy of this message | ||
Saludos, amigos tengo un pequeño problemita que me esta matando, tengo un
menu desplegable con varios items, lo que me piden es que al escoger el
item vea la manera de grabarlo en una variable para que al momento de pasar
a la siguiente pagina se mantenga el item seleccionado en la pagina
anterior.
Adjunto mi formulario y ojala me puedan ayudar por que si no me van a
arrojar del piso 16.
;)
<html>
<head>
<?
include("/var/www/html/pentagrama/config/header.php");
?>
<title>Pentagrama Sistema de Satisfaccion de Servicios</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="94%" border="0" cellspacing="2"
cellpadding="0">
<tr>
<td colspan="2" height="38">Nro. Boleto</td>
<td rowspan="2" width="2%"> </td>
</tr>
<tr>
<td width="46%" align="left">
<div align="left"></div>
<table width="99%" border="0" cellspacing="0"
cellpadding="0"
align="center">
<tr>
<td width="33%">
<table width="100%" border="1" cellspacing="2"
cellpadding="0">
<tr>
<td width="28%">Estado Boleto </td>
<td width="72%">
<?
$coneccion=pg_connect("host=linux port=5432 dbname=pruxia");
$sql="select estadoboleto from boleto";
$resultado=pg_exec($coneccion,$sql);
echo '<select name=estadoboleto>';
echo'<option >Estado Boleto </option>';
$fila=pg_numrows($resultado);
for ($j=0; $j < $fila; $j++)
{
echo'<option>'.pg_result($resultado, $j, 0);
}
pg_close($coneccion);
?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="33%">
<table width="100%" border="1" cellspacing="1"
cellpadding="2">
<tr>
<td width="28%">Linea Aerea</td>
<td width="72%">
<?
$coneccion=pg_connect("host=linux port=5432 dbname=pruxia");
$sql="select linea from boleto";
$resultado=pg_exec($coneccion,$sql);
echo '<select name=estadoboleto>';
echo'<option >Linea Aerea</option>';
$fila=pg_numrows($resultado);
for ($j=0; $j < $fila; $j++)
{
echo'<option>'.pg_result($resultado, $j, 0);
}
pg_close($coneccion);
?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="33%">
<table width="100%" border="1" cellspacing="1"
cellpadding="2">
<tr>
<td width="28%">Tipo Pasajero</td>
<td width="72%">
<?
$coneccion=pg_connect("host=linux port=5432 dbname=pruxia");
$sql="select tipopasajero from boleto";
$resultado=pg_exec($coneccion,$sql);
echo '<select name=estadoboleto>';
echo'<option >Tipo Pasajero</option>';
$fila=pg_numrows($resultado);
for ($j=0; $j < $fila; $j++)
{
echo'<option>'.pg_result($resultado, $j, 0);
}
pg_close($coneccion);
?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td width="19%">
<table width="100%" border="1" cellspacing="1"
cellpadding="2">
<tr>
<td width="28%">Pasajero </td>
<td width="72%"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="19%">
<table width="100%" border="1" cellspacing="1"
cellpadding="2">
<tr>
<td width="28%">Ruta </td>
<td width="72%"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="19%">
<table width="100%" border="1" cellspacing="1"
cellpadding="2">
<tr>
<td width="28%">Obsevacion</td>
<td width="72%"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="1" cellspacing="1"
cellpadding="0">
<tr>
<td>
<div align="center">Forma de Pago</div>
</td>
<td>
<div align="center">Tipo Boleto</div>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</td>
<td>
<table width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="52%" valign="top">
<table width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td width="20%">
<table width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td height="2" valign="top" width="78%">
<table width="100%" border="1" cellspacing="2"
cellpadding="0">
<tr>
<td>
<? include("igv-funcion-9.php")
?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="78%" height="2"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="20%"> </td>
</tr>
<tr>
<td width="20%"> </td>
</tr>
</table>
</td>
</tr>
</table>
<?
include("/var/www/html/pentagrama/config/footer.php");
?>
<p> </p>
</body>
</html>
===============================
Saludos,
Daniel Geldres Castro
mail: dgeldres@pcprices.com.pe
Telf Trab.: 511-447-7600
Telf Casa.: 511-251-3584
===============================