Hello all
I have 2 pages: login.php, which contains a variable named $page, and admin.php, which reads the value of that variable. The variable is passed from login.php to admin.php by use of a session.
On the admin.php page, there is a form that looks like this:
<form method = \"post\" action = \"admin.php\">
Please make a selection:
<input type = \"text\" size = \"2\" name = \"page\">
<input type = \"submit\" value = \"Go!\">
</form>
That form is located in admin.php (as i said), so when the submit button is clicked, the page will refresh. However, the value of $page is always at zero, no matter what i do. The session is messing it up somehow.
What i need to be able to do is change the value of the $page variable inside the admin.php file.
Can anyone help me?
Thanks in advance!