Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/07/2010, 11:50
AlanChavez
 
Fecha de Ingreso: junio-2010
Ubicación: Charlotte, NC
Mensajes: 611
Antigüedad: 13 años, 10 meses
Puntos: 95
Respuesta: Activar casilla de Verificacion (checkbox) y mandar a otra Pagina

Eso lo puedes hacer con javascript, buscando un poco en la web, me encontre con esta pagina:

http://www.w3schools.com/js/js_form_validation.asp

Que te muestra el siguiente codigo:
Código Javascript:
Ver original
  1. <html>
  2. <head>
  3. <script type="text/javascript">
  4. function validate_required(field,alerttxt)
  5. {
  6. with (field)
  7.   {
  8.   if (value==null||value=="")
  9.     {
  10.     alert(alerttxt);return false;
  11.     }
  12.   else
  13.     {
  14.     return true;
  15.     }
  16.   }
  17. }
  18.  
  19. function validate_form(thisform)
  20. {
  21. with (thisform)
  22.   {
  23.   if (validate_required(email,"Email must be filled out!")==false)
  24.   {email.focus();return false;}
  25.   }
  26. }
  27. </script>
  28. </head>
  29.  
  30. <body>
  31. <form action="submit.htm" onsubmit="return validate_form(this)" method="post">
  32. Email: <input type="text" name="email" size="30">
  33. <input type="submit" value="Submit">
  34. </form>
  35. </body>
  36.  
  37. </html>

Solo en lugar del campo de texto, lo cambias por checkbox, y ya.