Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/06/2016, 13:07
rodocoyote15
 
Fecha de Ingreso: diciembre-2015
Mensajes: 529
Antigüedad: 8 años, 4 meses
Puntos: 39
Respuesta: Otro reto :D. Como seleccionar un id de un while que se repite.

Y lo que te he dicho lo intentaste al menos? O la segunda opción de @Eleazan?

Código PHP:
Ver original
  1. <form action="<?php $_SERVER['PHP_SELF'] ?>" method="post">
  2. <input type="hidden" value="<?= $fila['id']; ?>" name="idpost">
  3. <input type="submit" value="votar" name="comentar"><br>
  4. </form>

Código PHP:
Ver original
  1. if(isset($_POST['comentar'])){
  2.  
  3.   $idrecibido = $_POST['idpost'];


Como te dicen, no será por opciones ...