title: I need to redirect based on the response to an html Form submission
body: <p>for example</p>
  <pre><code>&lt;form onsubmit=&quot;submitForm(event)&quot;&gt;
      &lt;p&gt; Do you like cats or dogs &lt;/p&gt;
      &lt;input type=&quot;radio&quot; id=&quot;cat&quot; value=&quot;Cats&quot;&gt;
      &lt;label for=&quot;cat&quot;&gt;Cats&lt;/label&gt;
      &lt;input type=&quot;radio&quot; id=&quot;dog&quot; value=&quot;Dogs&quot;&gt;
      &lt;label for=&quot;dog&quot;&gt;Dogs&lt;/label&gt;&lt;br&gt;
      &lt;button&gt;Submit&lt;/button&gt;
  &lt;/form&gt;
  &lt;script&gt;
      function submitForm(event) {
          if(document.getElementById('cat').checked) {
              //(send the user to the cat page)
    
          }else if(document.getElementById('dog').checked) {
              //(send the user to the dog page)
          }
  &lt;/script&gt;
  </code></pre>
  <p>how would I send users to different pages in the same root folder as my website based on their responses to my questions</p>