title: PHP file is printing everything after echo command
body: <p>I'm trying to build my first website.  I have a domain name and am building it on my laptop before uploading it to my host. The website is mostly focused around searching a database of family tree information.</p>
  
  <p>I have created a basic HTML file which seems to be working ok.  I have a search button linked to a PHP file. Ideally when someone used the button without putting in parameters it should reply with an error message that says "search term is missing" but instead it shows all the code for the PHP file. I've never done anything like this before so am more than a little confused.</p>