Results 1 to 3 of 3

Thread: isset failed on php4.1.2

  1. #1
    scoutt
    Guest

    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.

  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    perhaps this will work
    PHP Code:
    if (!isset($_POST['pass']) or !isset($_REQUEST['pass']) or !isset($_SESSION['passw'])) {
    ... 

  3. #3
    scoutt
    Guest
    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
  •  



Click Here to Expand Forum to Full Width