I am currently using MAMP for my php scripts, but I’m having a problem getting them to load in my browser.
I same the php scripts as filename.php in the htdocs folder. When I directly load these in the webrowser the pages load.
My problem is when I run a html doc that sends data to a php page using the action attribute. For example, I have a html script that has a form in it. The form tag will say:
Now when I complete the form and click submit the browser will go to the php page. However, the php code is not executed, and appears as code on the page.
Both the html and php are saved to htdocs.
How do I remedy this problem? Thank you.