Código PHP:
Ver original
<?php include("conectar.php"); $link=Conectarse(); $sal = "<br>"; echo "$sal $sal"; echo " <form name=\"form1\" method=\"post\" action=\"insertarcheck.php\"> <p> </p> <p>"; $nombre = $row["nombre"]; echo "<input type=\"checkbox\" name=\"option1\" name=\"$nombre\" value=\"Milk\"> $nombre<br>"; } echo "$sal"; echo" <input type=\"submit\" name=\"Submit\" value=\"Agregar\"> </p> </form>"; ?>
insertarcheck.php
Código PHP:
Ver original
<?php $valores = $_POST['$nombre']; echo "$valores<br>"; ?>