title: how to submit a form in wordpress
body: <p>I am using wordpress 3.3.1 with <code>twentyten</code> theme,</p>
  
  <p>i have created a plugin to create a custom form,</p>
  
  <p>i have successfully installed this in wordpress, </p>
  
  <p>my plugin file code is as follows </p>
  
  <pre><code>&lt;?php
  function guest_event_form()
  { 
  
  if(isset($_POST['submit']) and $_POST['action']=='new registration')
  {
  
      global $wpdb;
      $wpdb-&gt;query("Insert Query...");
  }
  else
  {
  ?&gt;
  &lt;form method="POST" action="" name="guest_registration" enctype="multipart/form-data"&gt; 
  &lt;input type="text" id="name" name="name" value=""&gt;
  &lt;input type="submit" name="submit" value="Register Me Now"/&gt;
  &lt;input type="hidden" name="action" value="new registration" /&gt;
  &lt;/form&gt;
  &lt;?php
  }
  }
  add_shortcode( 'guest_event_form', 'guest_event_form' );
  ?&gt;
  </code></pre>
  
  <p>whenever i am submitting this form, i returns to same page with search results,</p>
  
  <p>so i guess the problem whenever i submit this form, wordpress takes this submit action as a search action, and it starts search</p>
  
  <p>how do i overcome this problem??</p>