pagina funciones.js
en el index ya la cargue como
Código PHP:
<link href="funciones.js" rel="stylesheet" type="text/javascript" />
Código PHP:
function acepto(f){
if (f.acepto.checked == false )
{
alert("Por favor, debes aceptar las condiciones de uso antes de continuar");
return false;
}else
return true;
}
y el form es .
Código PHP:
<form method="post" onsubmit="return checkCheckBox(this)" action="<? $PHP_SELF?>?tipo=paso1">
<td width="19%" class="far-right"><input type="submit" value="siguiente >>" class="button">
<br /><br />
<input type="checkbox" name="acepto" value="0" />acepto la condiciones<br><br />
<input type="submit" value="No acepto" onclick="document.location.href='noacepto.htm';" class="button" />
</td>
</form>