Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/07/2009, 10:27
mik2022
 
Fecha de Ingreso: junio-2009
Mensajes: 14
Antigüedad: 14 años, 11 meses
Puntos: 0
Ayuda con CheckBox en PHP

hola me gustaria saber como hacer que el boton en este codigo imprimera el nombre de los checbox que han sido seleccionados. Gracias.

***echo "<form action=' ' method='post'>";
***echo "<br \><input button type=\"button\" name=\"obt\" value=\"Obetener ***Seleccion \" /><br \><br \>";
***echo "</form>";

$res = mysql_query("SELECT * FROM mostrar WHERE IDUSUARIO=$clave;");
while($row = mysql_fetch_array($res))
{
if($aux != $row['idreferencia'])
{

echo "<font face='Tahoma' size=2>" . "<input type=checkbox name= 'id[$n]' value= <br \>Titulo: " . $row['titulo'] . " <br \> ";
echo "Lugar y Año: " . $row['lugar_pbc'] . " " . $row['anio_pbc'] . "<br \>";
echo "Institucion: " . $row["institucion"] . "<br \>";
echo "Editorial: " . $row["nomedit"] . "<br \>";
echo "Autor: " . $row['nomautor'] . " " . $row['appatautor'] . " " . $row['apmatautor'] . "</font>";
echo "<br \><button type=\"submit\" value=\"Com \" onclick=\"window.open('/subidos/pdf1.pdf');void(0)\"/> <img src=\"pdf-logo.jpeg\" width=25 height=25/></button><br \><br \>";
$n++;
$aux = $row['idreferencia'];
}
}