Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/01/2016, 09:22
__SDP__
 
Fecha de Ingreso: agosto-2010
Ubicación: santiago, CHILE
Mensajes: 564
Antigüedad: 13 años, 8 meses
Puntos: 9
Respuesta: verificar Checkbox esta sin marcar con if

validado con php

Código PHP:
Ver original
  1. <?php
  2.  
  3. if(is_null($_POST['chktest'])){
  4.     echo "es nulo";
  5.    
  6. }else{
  7.    
  8.     echo $_POST['chktest'];
  9. }
  10.  
  11. ?>
  12. <!DOCTYPE html>
  13. <html>
  14. <head></head>
  15. <body>
  16. <form action="" method="post">
  17.  
  18.     <input type="checkbox" name="chktest" value="check 1">
  19.     <input type="checkbox" name="chktest" value="check 2">
  20.    
  21.     <input type="submit" value="enviar">
  22.    
  23. </form>
  24. </body>
  25. </html>