I recently download PHP 4.3.1 and made it installed in Linux. But I found post variables are always empty when I do some coding. My source code seems like below:
// query_information.html
<html>
<head>Type Information<head>
<body>
<form action="action.php" method="post">
<input type="text' name="username">
<input type="password" name="password">
<input type="submit">
</form>
</body>
</htmlL>
// Action.php
<?
echo "<br>UserName= $username";
echo "<br>Password= $password";
?>
Result came out after I typed information about username and password like this:
UserName=
Password=
"oops', where are value of my post variables??? I tried "phpinfor()" in action.php and I did find the page returned with correct post variables post from query_information.html. How comes?? 🙁
Thank you! 🙂