title: radiobutton passing value without reloading page
body: <p>is there a way of passing the value without reloading the page?</p>
  
  <p>The value from the checked radiobutton is then passed to the session variable</p>
  
  <pre><code>$_SESSION['user']['moms'] = $_POST['radio_button'];
  
  
  &lt;form name="f1" action="" method="post"&gt;
  &lt;label for="exkl"&gt;
  &lt;input type="radio" id="exkl" name="radio_button" onClick="this.form.submit();"  value="1"&lt;?php if(($_POST['radio_button'] == 1) || ($_POST['radio_button'] == "")) {  print ' checked="checked"'; } ?&gt; /&gt; Exkl. moms&lt;/label&gt;
  &lt;label for="inkl"&gt;
  &lt;input type="radio" id="inkl" name="radio_button" onClick="this.form.submit();" value="2"&lt;?php if($_POST['radio_button'] == 2) { print ' checked="checked"'; } ?&gt; /&gt; 
  Inkl. moms&lt;/label&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>thanks
  linda</p>