Help for this page

Select Code to Download


  1. or download this
    ## step 1. take the username and password from the form
    ## step 2. query the mysql db and check to see whether the password  i
    +s good for the username
    ...
                    print $cgi->header(-cookie=>$cookie);
                    $cookieuserid=$session->param("userid");
    ## now we can display anything to them because they just logged in
    
  2. or download this
    sub CheckIfUserIsLoggedIn
    {
    ...
    ## display whatever I want to this user
    }
    }