GET / POST strange error

From: Date: Fri, 24 Aug 2001 14:17:16 +0000
Subject: GET / POST strange error
Groups: php.general 
Request: Send a blank email to php-general+get-64248@lists.php.net to get a copy of this message
i have written a login page for a members area on my site - the code is as follows... <? require_once("backend.php"); if (!$userid || !$password) { include("loginform.php"); exit; } else { $login = $authlib->login($userid, $password); if ($login != 2) { $error = $login; include("loginform.php"); exit; } else { include("index.php"); } } ?> it uses authlib to authorise the user and then include a different pasge if they are logged in...fairly simple so far.. approx 50% of the time the user cannot log in straight away... the page just reloads and you get the blank entry fields again. The logs show the page being posted and then get 213.165.1.171 - - [24/Aug/2001:15:05:36 +0100] "POST /cand/members/login.php HTTP/1.1" 302 1792 213.165.1.171 - - [24/Aug/2001:15:05:36 +0100] "GET /cand/members/login.php HTTP/1.1" 200 1094 i am using apache 1.3.19 and php 4.0.4 on redhat 7 I have had this problem reported on another form page as well...

« previous php.general (#64248) next »