title: How to make a button which submits a form but doesn't reload the page?
body: <p>I have a form, which takes all the inputs settings form an array. Submin button is constructed ths way:</p>
  
  <pre><code>&lt;input name="save" class="button" type="submit" value="Save Settings" /&gt;
  &lt;input type="hidden" name="action" value="save" /&gt;
  </code></pre>
  
  <p>And function, whch handles saving or deeting operation is contructd this way:</p>
  
  <pre><code>function theme_settings_page() {
      global $themename,$theme_options;
      $i=0;
      $message='';
          if ( 'save' == $_REQUEST['action'] ) {
              foreach ($theme_options as $value) {
                  update_option( $value['id'], $_REQUEST[ $value['id'] ] ); }
              foreach ($theme_options as $value) {
          if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ]  ); } else { delete_option( $value['id'] ); } }
                  $message='saved';}
          else if( 'reset' == $_REQUEST['action'] ) {
              foreach ($theme_options as $value) {
                  delete_option( $value['id'] ); }
                  $message='reset';}
          if ( $message=='saved' &amp;&amp; $i==0 )  echo '&lt;div id="message" class="apply"&gt;&lt;strong&gt;Ustawienia zachowane.&lt;/strong&gt;&lt;/div&gt;' ;
          if ( $message=='reset' ) echo '&lt;div id="message" class="reset"&gt;&lt;strong&gt;Ustawienia zresetowane.&lt;/strong&gt;&lt;/div&gt;';
  </code></pre>
  
  <p>The $value['id'] is actually a value taken from array descibing all the inputs. The form begins and ends with nothing more than:</p>
  
  <pre><code>&lt;form method="post"&gt;&lt;/form&gt;
  </code></pre>
  
  <p>The content of the form is made as tabs. So the question is: how to make the page not reload when Save button is being hit??</p>
  
  <p>PS: I'm not sure I gave you enough data, but if you need to know something more, just ask. I was looking through the web for an examples but I couldn't find anythig appropriate.</p>