I'm trying to make it so that a user has to accept two terms and conditions before being able to click the "Agree and Continue" button. I tried to insert a second checkbox but then the user can just click the "Agree and Continue" button without either box being checked, so this code only has one checkbox. Thanks!
<SCRIPT language=JavaScript>
<!--
function checkCheckBox(f){
if (f.agree.checked == false )
{
alert('Please check the box to continue.');
return false;
}else
return true;
}
//-->
</SCRIPT>
<form action="https://google.com" method="GET" onsubmit="return checkCheckBox(this)">
<!--Enter your form contents here-->
<input type="checkbox" value="0" name="agree">
<b> I Agree to the <a href="https://example.com/TOS">Terms and Conditions</a> and <a href="https://example.com/PP">Privacy Policy</a></b>
<br><br>
<b> I understand that I am accessing a third-party site and will abide by their <a href="https://example.com/TOS">Terms and Conditions</a> and <a href="https://example.com/PP">Privacy Policy</a></b><br>
<br>
<input type="submit" value="Agree and Continue">
</form>