I am a newbie to XAMPP, but I have plenty of old-school programming experience.
I have installed XAMPP 7.3 on Mac OS Mojave. I pasted sample HTML code from W3C lessons, and it works great.
I pasted some simple "Hello World" html and php code, and named the two files using .html and .php extensions respectively.
I saved the two files into the same folder.
When I execute the html, which contains two simple text input boxes and one Submit button, the php file content is displayed in the browser, but the php code does not execute.
Have I missed a step in the installation ?
Here is the welcome.html file:
<!document html>
<html>
<body>
<form action="welcome.php" method="post">
Your Name: <input type="text" name="name"><br>
Your E-mail: <input type="text" name="email"><br>
<input type="submit">
</form>
</body>
</html>
Here is the welcome.php file:
<html>
<body>
Welcome Back <?php echo $_POST["name"]; ?><br>
Your email address is: <?php echo $_POST["email"]; ?>
</body>
</html>
Thanks in advance for your assistance