I need to pass a variable from page1 to page2 without URL, or without making the variable visible to users, to I figured, I might use the hidden field method, but I can't do this with the following script
<form method="POST" action="page1.php">
Username: <input type="text" maxlength="25" name="username" value="" class="i_login" />
Password: <input type="password" maxlength="32" name="password" value="" class="i_login" />
<input type="hidden" name="hidden_field" value="" class="i_login" />
<input type="submit" name="login" value="Login" class="submit"/>
And, in page2.php I made
$hidden = $_POST['hidden_field'];
echo $hidden;
But nothing happens