title: How can I run PHP script using a HTML Form without redirecting to a new page?
body: <p>I have a simple html form that looks like the following </p>
  
  <pre><code>  &lt;form action="search.php" method="get"&gt;
      &lt;p&gt;Company Name:
         &lt;input type="text" name="name" /&gt;
      &lt;/p&gt;    
      &lt;p&gt;
        &lt;input type="submit" value = "Search"/&gt;
      &lt;/p&gt;
    &lt;/form&gt;
  </code></pre>
  
  <p>Simple enough, however the problem is I am redirected to <code>search.php</code> (which resides in the same directory as this form page). I would like to be able to display the search results on the same page, (below the form) without redirecting to <code>search.php</code>. What do you suggest?</p>