Ver Mensaje Individual
  #61 (permalink)  
Antiguo 05/11/2008, 08:24
Avatar de hoberwilly
hoberwilly
 
Fecha de Ingreso: julio-2008
Ubicación: Lima - Perú
Mensajes: 769
Antigüedad: 15 años, 11 meses
Puntos: 2
Respuesta: Ayuda con mensaje

Este el codigo que manejo un listado de productos, incluye radio botones conforme se genere estos productos.
pedidoNoatendido.php
<?php
include('conec.php');
conectarse();
$qry=mysql_query("select * from factura where estatus='pendiente' order by idFactura desc");
?>
<html>
<head>
<title>Administrador de Pedidos Pendientes</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="" method="post" action="accion.php">
<table>
<tr>
<td align="center" width="4%"><strong>Id</strong></td>
<td align="center" width="21%"><strong>Destinatario</strong></td>
<td align="center" width="5%"><strong>Acci&oacute;n</strong></td>
</tr>
<?php
while($row=mysql_fetch_array($qry)){
?>
<tr>
<td align="center"><?php echo $row['idFactura'] ?></td>
<td><?php echo $row['destinatario'] ?></td>
<td align="center"><input type="radio" name="un_nombre" value="<?php echo $row['idFactura'] ?>"></td>
</tr>
<?php } ?>
<tr valign="middle">
<td align="center"><input type="submit" name="mismo_nombre" value="Consultar Pedido"></td>
<td align="center"><input type="submit" name="mismo_nombre" value="Cambiar a Pedido Atendido"></td>
</tr>
</table>
</form>
</body>
</html>

bien ahora quisiera que codigo js se debe colocar para que detecte que al dar click en el submit el usuario primero tiene que haber dado click en uno de los radio botones...esto actualmente no esta implementado debido que al no dar click en el radio boton y pasar el submit a otra pagina no me carga absolutamente ningun dato.

Por favor solicito me ayudaran con esto...gracias