not sure why .php file does not read variables from client side .htm
using following code snippet to test.
Code: Select all
//html client side
<html>
<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>
Code: Select all
//php server side
<html>
<body>
Welcome <?php echo $_POST["fname"]; ?>!<br />
You are <?php echo $_POST["age"]; ?> years old.
</body>
</html>
-used GET to test if variables are being passed, they are