title: Php Result page to be displayed on same page
body: <p>This is my coding for the search form: </p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Search&lt;/title&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;link rel="stylesheet" type="text/css" href="style.css"/&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form action="https://excelforth.com/search1.php" method="GET"&gt;
          &lt;input type="text" name="query" /&gt;
          &lt;input type="submit" value="Search" /&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The thing is , When I submit this form on my web page , It goes to the php Results page and displays the results. But the thing is that it is just a plain page with just the results displayed.</p>
  
  <p>My search page :</p>
  
  <pre><code>www.mysite/test/certification-database-search/
  </code></pre>
  
  <p>The Php file is located in my webroot folder . I was told that for wordpress , the individual subpages cannot be edited .</p>
  
  <p>How do I :</p>
  
  <p>1.Display the results on the same page as the search page. Not a completely new page.</p>
  
  <p>2.Retain the page layout and theme / headers/ footers of the page</p>
  
  <p>3.If possible run the .php file in  /certification-database-search/ and query it from there. instead of using the one in my webroot folder. </p>
  
  <p>THANKS!!</p>