I get the following 404 error when trying to access a PHP file on MAMP
"The requested URL /‘welcome.php’ was not found on this server."
Both the html file and the php file run fine via localhost just not from the file action.
They are in the same location and the action looks like action='welcome.php'
<html><head charset=“utf-8”>></head><form action=‘welcome.php’ enctype="text/plain" method=“post”>
First name: <input type="text" name="firstname"><br> Last name: <input type="text"
name="lastname"> <button action=“submit”>Submit </button> </form> </html>
welcome.php looks like this
<html> <body> Welcome <?php echo $_POST["name"]; ?><br> Your email address is: <?php echo
$_POST["email"]; ?> </body> </html>