title: Post Single Form Value To Self With On Click Href
body: <p>I have a basic form. All the  elements are text fields.</p>
  
  <p>There is a regular submit button at the end that posts the form to another page.</p>
  
  <p>The problem is I have one text field within the form, that I want to be able to post to the form and reload the page after running through a script.</p>
  
  <p>Sample code:</p>
  
  <pre><code>&lt;?php 
  
  if (isset("var_needed"){
  
  ... Do all this....
  }else;
  
  ?&gt;
  
  &lt;form id="form" action="post_to_next_page.php" &gt;
  &lt;input name="var1" type="text" id="var1"/&gt;
  &lt;input name="var2" type="text" id="var2"/&gt;
  &lt;input name="var3" type="text" id="var3"/&gt;
  
  &lt;input name="var_needed" type="text" id="var_needed"  /&gt;
  &lt;a href="#" onclick="...?...."&gt;&lt;img src="../image/_apply_code_button.jpg" width="132" height="28" /&gt;
  
  &lt;input name="var4" type="text" id="var4"/&gt;
  &lt;input name="var5" type="text" id="var5"/&gt;
  
  &lt;input type="submit" name="submit" id="submit" value="Submit" /&gt;
  </code></pre>
  
  <p>I figure I can do this with some sort of JavaScript that gets executed with the <code>onclick</code> handler of an image within the form.  Any help would be appreciated.</p>