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