What I am trying to do is ask for a password, and possibly a username, and then direct the person to a certain page depending on what they type. There will not be a large number of people, so they will all have their own pages, but they will be "inside" a main PHP file.
The way I tried to do it was to use a form directed to its self with a password field, and then check to see if the password was correct. However, when I use something like this:
<?php if ($_POST["password"]) { ?>
or any time I look for the "password" field before the password has been sent, I get an "index not found" message.
I know that with ASP, I can do the exact same thing and it does not have a problem. Any Ideas on how to get rid of the message (without lowering the "error message" level)?
Thanks!!
Natwad
The way I tried to do it was to use a form directed to its self with a password field, and then check to see if the password was correct. However, when I use something like this:
<?php if ($_POST["password"]) { ?>
or any time I look for the "password" field before the password has been sent, I get an "index not found" message.
I know that with ASP, I can do the exact same thing and it does not have a problem. Any Ideas on how to get rid of the message (without lowering the "error message" level)?
Thanks!!
Natwad