Submit multiple values using only one button
<p>this is a sample what I need:</p>

<pre><code>&lt;form action="action.php"&gt;
&lt;br&gt;
  &lt;input type="radio" name="firstname" value="name1" checked="checked"&gt; First name:name1
  &lt;br&gt;
  &lt;br&gt;
  &lt;input type="hidden" name="lastname" value="lastname1"&gt;
  &lt;br&gt;
&lt;br&gt;
  &lt;input type="radio" name="firstname" value="name2"&gt; First name:name2
  &lt;br&gt;
  &lt;br&gt;
  &lt;input type="hidden" name="lastname" value="lastname2"&gt;
  &lt;br&gt;
  &lt;br&gt;
  &lt;input type="radio" name="firstname" value="name3"&gt; First name:name3
  &lt;br&gt;
  &lt;br&gt;
  &lt;input type="hidden" name="lastname" value="lastname3"&gt;
  &lt;br&gt;&lt;br&gt;
  &lt;input type="submit" value="Submit"&gt;
&lt;/form&gt;
</code></pre>

<p>I need submit only hidden value where radio is checked. 
For example if I check   <code>firstname1</code> i need submit together <code>firstname1</code> and hidden <code>lastname1</code> only. Can anybody help? </p>

<p>Maybe my question is not correct. When I click submit, I need correspond only one hidden value where radio checked. I can't get it. I have tried some javascript suggested here, but no success.Seems I walking somewhere around. Can anybody show the right way? </p>

<p>Solved.</p>