Jump to content


Photo

Display problems


  • Please log in to reply
23 replies to this topic

#21 genista

genista
  • Members
  • PipPipPip
  • Advanced Member
  • 149 posts

Posted 10 August 2006 - 02:37 PM

Ok here is it s off the join form:

cleanMemberSession($_POST["username"], $_POST["password"], $_POST["userid"]);

        // and then redirect them to the members page:
        header("Location: members.php?".session_name()."=".session_id());

      
    }
}


#22 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 10 August 2006 - 02:44 PM

I dont think you want to use $_POST['userid'] as you havn't got the users userid from the database. I think you might want to rethink the logic of your code. As to me it appears to be all over the place.

#23 genista

genista
  • Members
  • PipPipPip
  • Advanced Member
  • 149 posts

Posted 10 August 2006 - 02:53 PM

Ah yes, I just added that to see if it works, I had taken it off 5 mons ago. Can I make the function conditional, in other words only provide the userid in the session once a user is logged in?

#24 genista

genista
  • Members
  • PipPipPip
  • Advanced Member
  • 149 posts

Posted 10 August 2006 - 03:27 PM

I think I have worked this out for myself now. Thanks again




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users