|
-
Apr 18th, 2002, 03:35 PM
#1
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.
-
Apr 18th, 2002, 04:20 PM
#2
PowerPoster
perhaps this will work
PHP Code:
if (!isset($_POST['pass']) or !isset($_REQUEST['pass']) or !isset($_SESSION['passw'])) {
...
-
Apr 18th, 2002, 06:04 PM
#3
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|