Hi,
Here are my codes:
test1.html
<!doctype html>
<html lang="en">
<head>
</head>
<body>
<form action="welcome.php" method="post">
Name: <input type="text" name="fname">
Age: <input type="text" name="age">
<input type="submit">
</form>
</body>
</html>
welcome.php
Welcome <?php echo $_POST["fname"]; ?>!<br>
You are <?php echo $_POST["age"]; ?> years old
Output on browser
Welcome <?php echo $_POST["fname"]; ?>!<br>
You are <?php echo $_POST["age"]; ?> years old
Browser URI
file:///C:/xampp/htdocs/welcome.php
I am running XAMPP with Apache server. Seems like parameters from form not passed to welcome.php file.
Do you know what is the matter?