title: HTML form not submitting values
body: <p>This is my form and it is not passing any values.</p>
  
  <pre><code> &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"&gt;
   &lt;html&gt;
      &lt;head&gt;
          &lt;style type="text/css"&gt;
              .welcome {
                  color: #FFFFFF;
                  text-align: center;
                  background-color:red;
                  font-weight:bold;
                  height: 50px;
              }
          &lt;/style&gt;
          &lt;script type="text/javascript"&gt;
              function submitimg(myvalue)
              {
                  document.getElementById('type').value = myvalue;
                  document.getElementById('survey').submit(); 
              }
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;table style="height: 232px; width: 500px"&gt;
              &lt;form action="" method="post" name="survey" id="survey"&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          &lt;div class="welcome"&gt;&lt;br&gt;Welcome!&lt;/div&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          &lt;ul&gt;
                              &lt;br&gt;
                              &lt;br&gt;
                              &lt;div id="question1" style="display: inline;"&gt;
                                  &lt;h3&gt;
                                      Are You 30+ Years Old?
                                  &lt;/h3&gt;
                                  &lt;div style="height: 10px"&gt;     &lt;/div&gt;
                                  &lt;input type="button" name="age30" value="Yes" onclick="document.getElementById('question1').style.display='none';document.getElementById('question2').style.display='inline';"&gt;
                                  &lt;input type="button" name="age30" value="No" onclick="document.getElementById('question1').style.display='none';document.getElementById('question2').style.display='inline';"&gt;
                              &lt;/div&gt;
                              &lt;div id="question2" style="display: none;"&gt;
                                  &lt;h3&gt;
                                      Are You Looking for a Date?
                                  &lt;/h3&gt;
                                  &lt;div style="height: 10px"&gt;     &lt;/div&gt;
                                  &lt;input type="button" name="date" value="Yes" onclick="document.getElementById('question2').style.display='none';document.getElementById('question3').style.display='inline';"&gt;
                                  &lt;input type="button" name="date" value="No" onclick="document.getElementById('question2').style.display='none';document.getElementById('question3').style.display='inline';"&gt;
                              &lt;/div&gt;
                              &lt;div id="question3" style="display: none;"&gt;
                                  &lt;h3&gt;
                                      Which Girl Is Your Type?
                                  &lt;/h3&gt;
                                  &lt;div style="height: 10px"&gt;     &lt;/div&gt;
                                  &lt;input type="hidden" name="type" value=""&gt;
                                  &lt;img src="http://healthystartups.com/storage/600px-MA_Route_1.png?__SQUARESPACE_CACHEVERSION=1319542839834" width="100px" style="cursor:pointer;" onclick="submitimg('type1');"&gt;
                                  &lt;img src="http://jenntgrace.com/wp-content/uploads/2012/12/2.png" width="100px" style="cursor:pointer;" onclick="submitimg('type2');"&gt;
                                  &lt;img src="http://3.bp.blogspot.com/-Q_owQUxNjdQ/Te3ALCmT3oI/AAAAAAAAAnk/wv9r0b0MT-g/s1600/600px-MA_Route_3.svg_.jpg" width="100px" style="cursor:pointer;" onclick="submitimg('type3');"&gt;
                                  &lt;img src="http://4.bp.blogspot.com/-wY_qFr2pcAs/UCxhAayJ6oI/AAAAAAAAC6w/PgtLs2O_4g8/s1600/4.png" width="100px" style="cursor:pointer;" onclick="submitimg('type4');"&gt;
                              &lt;/div&gt;
                          &lt;/ul&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/form&gt;
          &lt;/table&gt;
      &lt;?php
          $age30 = $_POST['age30'];
          $date = $_POST['date'];
          $type = $_POST['type'];
          echo $_POST['age30'];
      ?&gt;
      &lt;/body&gt;
   &lt;/html&gt;
  </code></pre>