title: How do I get output from php file to display in a div on the wordpress page that called it?
body: <p>I have a php file that returns some lovely formatted data, but it displays in a new page.  How do I get it to display in a div on the wordpress page that called the php file?</p>
  
  <p>The page has the user enter a number of values in form fields, they press submit, those values are passed to the php which uses them to perform the mysql query and return the filtered data.  </p>
  
  <p>I want my button to say "display data" and when clicked the mysql query data displays in a div on the same page.</p>
  
  <p>At the moment the output comes via : <code>echo print $display_output;</code> from the php file.</p>