I am 15 and new to HTML and PHP so if i did something stupid, please excuse me!
I have made a website with a contact form and I made the .php file. This is my code:
<FORM METHOD="POST" ACTION="contact.php">
I click submit and it takes my to the contact.php file and it shows me the code in the browser. How do I make the php file actually work?
Your problem is neither PHP nor HTML (much less HTML5) — if a PHP file displays in the browser, then webserver is not set up right. However, without knowing what machine you are on , it’s impossible to advise further.
Also, welcome to web programming, we are here to help. Please consider contributing to an open source project (I would recommend Drupal of course 🙂 ).