Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/02/2013, 08:34
Pelao
 
Fecha de Ingreso: abril-2003
Mensajes: 260
Antigüedad: 21 años, 1 mes
Puntos: 1
Respuesta: Problema chexbox y formulario

hola stone...

para el punto 1 prueba lo siguiente:

Código PHP:
<form action="nombredehoja.php" method="post">
<input name="acepto" type="checkbox" value="si" />
Acepto los terminos del contrato
<input name="descargar" type="submit" id="descargar" />
</form>

<?php 
if (isset($_POST['acepto']=='si')) { 
header('Location: imagen.zip');}?>
y para el punto 2, reedirecionalo con html...al final de todo pone:

<meta http-equiv="Refresh" content="0;URL=pagina.html" />

Contame que onda
__________________
Bye!