Ver Mensaje Individual
  #3 (permalink)  
Antiguo 31/10/2012, 13:49
Avatar de memoadian
memoadian
Colaborador
 
Fecha de Ingreso: junio-2009
Ubicación: <?php echo 'México'?>
Mensajes: 3.696
Antigüedad: 14 años, 10 meses
Puntos: 641
Respuesta: parar id en vez de nombre desde html a php

pues tratalo como un array
Código HTML:
Ver original
  1. <form method="post" action="index.php">
  2.         <input type="checkbox" name="PREGUNTA9[]" value="1"/>
  3.         <input type="checkbox" name="PREGUNTA9[]" value="2"/>
  4.         <input type="checkbox" name="PREGUNTA9[]" value="3"/>
  5.         <input type="submit" value="enviar"/>
  6.     </form>
Código PHP:
Ver original
  1. <?php
  2.         $pregunta9 = $_REQUEST['PREGUNTA9'];
  3.         echo $pregunta91 = $pregunta9[0];
  4.     ?>