title: when i submit a form, the .php file loads in the browser instead of running
body: <p>I'm trying to teach myself PHP and following along with an excercise from a book..</p>
  
  <p>When i submit the form, the .php file loads in the browser instead of running..</p>
  
  <p>I am testing this locally on a mac</p>
  
  <p>I have mamp installed.
  I also have a database, and a table created within that DB..</p>
  
  <p>The domain is: localhost
  UN :root
  PW: root</p>
  
  <p>The DB is named: aliens_abduction
  The table is named: aliens_abduction_table</p>
  
  <p>I've attached a screenshot of:
  the html
  the php
  the result when you click submit.</p>
  
  <p>I'm obviously missing something completely dumb here, but I'm at a dead end.. I can't figure out why the script isn't populating the DB..</p>
  
  <p>Any help would be amazing, thanks</p>
  
  <p>G</p>
  
  <p><img src="https://i.stack.imgur.com/HiZln.png" alt="report-html"></p>
  
  <p><img src="https://i.stack.imgur.com/Y1Y3f.png" alt="report-php"></p>
  
  <p><img src="https://i.stack.imgur.com/KOoCf.png" alt="browser-result"></p>