title: Displaying Database Query Results
body: <p>Suppose I have a form. After I submit my form, the data is submitted to <code>dataprocess.php</code> file.
  The <code>dataprocess.php</code> file processes the variable sent via form and echoes desirable output.</p>
  
  <p>It seems impossible to echo to a specified <code>div</code> in specified page only using PHP (without using AJAX/JavaScript as well). I do not want to use these because some browsers might have these disabled.</p>
  
  <p>My concern is that I want to maintain the same formatting of the page that contained the form element. I want the form element to be there as well. I want the query result to be displayed below the form.</p>
  
  <p>I could echo exact html code with some modification but that's memory expensive and I want it systematic.</p>
  
  <ol>
  <li><p>Is it possible to process the form within the same page? Instead of asking another .php file to process it? How does one implement it?</p></li>
  <li><p>The above is just for knowledge. It will be long and messy to include the PHP script within the same HTML file. Also, that method might not be efficient if I have same <code>process.php</code> file being used by several forms.</p></li>
  </ol>
  
  <p>I am actually looking for efficient methods. How do web developers display query result in same page? Do the echo all the html formatting? also, does disabling JavaScript disable jQuery/AJAX?</p>