Ver Mensaje Individual
  #10 (permalink)  
Antiguo 27/12/2011, 22:01
thezzin
 
Fecha de Ingreso: septiembre-2008
Mensajes: 350
Antigüedad: 16 años, 6 meses
Puntos: 31
Respuesta: creacion de formulario

a como te dijo Triby forzosamente a Javascript.

pero aquí te dejo un ejemplo Espero te sirva el resto tu lo aras o alguien te ayuda porque yo me voy a sleep

Código HTML:
<script>
var checkobj

function agreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){  // down submit button
var tempobj=checkobj.form.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
}
}
}

function defaultagree(el){
if (!document.all&&!document.getElementById){
if (window.checkobj&&checkobj.checked)
return true
else{
alert("Please read/accept terms to submit form")
return false
}
}
}

</script>


<form action="<?php echo $_SERVER['PHP_SELF']; ?>?term=1" method="post" name="agreeform" onSubmit="return defaultagree(this)">
Asepto Click Aqui para continuar <input name="agreecheck" type="checkbox" onClick="agreesubmit(this)">
<input type="Submit" value="Continuar" disabled> 
  
 <b> No Asepto</b>.
<input name="term" type="checkbox" onClick="window.location= '<?php echo $_SERVER['PHP_SELF']; ?>?term=0';" />
</form>
<script>
//cambie agreeform etc  abajo a los nombres de su forma
document.forms.agreeform.agreecheck.checked=false
</script>
<?php 
if(isset($_GET['term'])){
	$term = $_GET['term'];
if(!($term == "1")){
	header("Location: index.php");
}else{
	echo '<h1>proseso completo</h1>';
}}
?>
	
 
es un poco viejo el code pero ahí tienes una idea



-
__________________
╬-----╬
║☺₧☻║
╬-----╬