Como recibir valores de checkbox
Publicado por Estoyaqui (1 intervención) el 10/02/2005 19:39:19
Tengo este codigo en una pagina:
<html>
<head>
<title>Solicitud Pendientes</title>
<link rel="stylesheet" type="text/css" href="Estilos.css">
</head>
<body>
<h1>Solicitudes Pendientes</h1>
<form action="Altaenpend.php" method="post">
<?php
$conx = pg_connect("host=localhost dbname=nombreBD user=usuario password=password");
if ($conexion)
{
echo "Error al conectarse";
exit;
}
$sql = "select * from solicitud";
$result = pg_query($conx, $sql);
$fila = pg_num_rows($result);
for ($i = 0; $i < $fila; $i++)
{
$arraysol = pg_fetch_array($result, $i);?>
<input type="checkbox" name="solicitud" value="<?php $arraysol['so_cod']?>"><?php echo $arraysol['so_nombre']?><br><?php
}
?>
<br>
<input type="submit" name="Aceptar">
</form>
</body>
</html>
Con los datos que recibo de los checkbox deseo interactuar con ellos en la otra pagina, como se hace??
gracias por responder
<html>
<head>
<title>Solicitud Pendientes</title>
<link rel="stylesheet" type="text/css" href="Estilos.css">
</head>
<body>
<h1>Solicitudes Pendientes</h1>
<form action="Altaenpend.php" method="post">
<?php
$conx = pg_connect("host=localhost dbname=nombreBD user=usuario password=password");
if ($conexion)
{
echo "Error al conectarse";
exit;
}
$sql = "select * from solicitud";
$result = pg_query($conx, $sql);
$fila = pg_num_rows($result);
for ($i = 0; $i < $fila; $i++)
{
$arraysol = pg_fetch_array($result, $i);?>
<input type="checkbox" name="solicitud" value="<?php $arraysol['so_cod']?>"><?php echo $arraysol['so_nombre']?><br><?php
}
?>
<br>
<input type="submit" name="Aceptar">
</form>
</body>
</html>
Con los datos que recibo de los checkbox deseo interactuar con ellos en la otra pagina, como se hace??
gracias por responder
Valora esta pregunta


0