Help:the problem of tansfer reference

Help:the problem of tansfer reference

test1.php:
  <html>
  <body>
  <form method="post" action="test2.php">
    <input type="text" name="username" size=16><br>
    <input type="text" name="password" size=16 >
    <input type="submit"  name="submit" value="submit">
    <input type="reset"   name="reset" value="clear">
</form>
</body>
</html>


test2.php:

<html>
<body>
<?php
  echo $_post['username'];
  echo $HTTP_POST_VARS["username"];
?>
</body>
</html>

i have verifyed register_globals=on ,but still can not see any result on the page (i am sorry i can only type english)

$_post['username'] is wrong.
it must be $_POST['username'] .
but i don't know why '$HTTP_POST_VARS["username"]' can't  work,
maybe this long syntax is disused in php5.you can just use  $_POST[].

[ 本帖最后由 我不是鱼 于 2006-8-16 11:14 编辑 ]
如履薄冰

if register_globals=on
we can use 'echo $username' directly.
如履薄冰

i have used the way you tell me ,and it works ,thank you very much

don't mention it.
如履薄冰