title: Transfer input value to div used as submit button
body: <p>Is there a way to transfer the value of an input to a div that I use as a submit button?</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;form action="./exam/x/u_exam_run.exe.php" method="post" style="display:inline"&gt;
    &lt;input type="hidden" name="qst" value="&lt;?=$get_QUID_text_sha;?&gt;" /&gt;
    &lt;input type="hidden" name="uex" value="&lt;?=$_get_EUID;?&gt;" /&gt;
    &lt;?php
      foreach($question_answers as $answer_text_sha =&gt; $answer_text) {
         if($reformat_output) {
           $answer_text = reformat_output_table($answer_text);
         }
    ?&gt;      
    &lt;div name="akwMB" class="&lt;?=$_SESSION['akw_list'][$get_QUID_text_sha]==$answer_text_sha ? 'list-item-answer-hover' : 'list-item-answer';?&gt;" onclick="this.parentNode.submit()"&gt;
      &lt;input type="hidden" name="akwMB" value="&lt;?=$answer_text_sha;?&gt;"/&gt;
      &lt;div class="question-list" &gt;
        &lt;span&gt;&lt;?=$answer_text;?&gt;&lt;/span&gt;   
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;?php
    }
    ?&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I'm trying to get <code>$answer_text_sha</code> to get submitted when I click the div, but everything I've tried didn't work. Is there a way to do this? Thanks.</p>