All pastes #2050626 Raw Edit

Anonymous

public text v1 · immutable
#2050626 ·published 2011-04-25 21:44 UTC
rendered paste body
<input type="checkbox" value = "1" name="terms">

function validateForm(contact_form)
{
alert('document.forms.contact_form.terms.value');
if(document.forms.contact_form.terms.value!="1")
{
alert("You must accept the Terms of Service.");
return false;
}

return true;
}