-
isset failed on php4.1.2
ok php'ers figure this one out.
ok I have this
PHP Code:
if ((!isset($_POST['pass'])) or (!isset($_REQUEST['pass'])) or (!$_SESSION['passw'])){
echo $_SESSION['pass'];
}
ok what do you think should happen? if none of that is true it will just skip it and go on right????
well you are WRONG :)
what happens is it becomes true and echos out the correct password. I know strange itsn't it. but tha tis what happens. that passowrd gets saved in the session and then that if statement say it isn't it echos the session right on the screen.
I can't figure this one out.
-
perhaps this will work
PHP Code:
if (!isset($_POST['pass']) or !isset($_REQUEST['pass']) or !isset($_SESSION['passw'])) {
...
-
nope what I had works it is just that if ONE if them becomes NOT true then it will echo it out. so I had to use AND instead of OR. just looks so funny to me I guess.