View Full Version : Terms and conditions onSubmit
slookabill
01-01-2003, 10:36 PM
I need help creating a script that on a file upload form, that when the hit the submit button, that they are required to read through two pages of terms and conditions(opening in a new window), and the upload/submit would be terminated if they do not agree to the terms... if anyone can help, I would be appreciative...
Thanks,
Scott Lookabill
Mhtml
01-02-2003, 03:34 AM
Why not just have a checkbox that they have to check if they agree?
<script language="javascript" type="text/javascript">
function validate(){
if (tf.Agree.checked == true){
return true
} else {
alert("Before proceeding you must accept the terms and conditions!")
return false
}
}
</script>
<form action="yourpage.htm" method="post" onSubmit="return validate()">
<input type="checkbox" name="Agree" CheckedValue="Yes" />
<input type="submit" />
</form>
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.