Question about form classes



Hi all,

I have a quick question about form classes. I am following this
tutorial: http://www.evolt.org/article/PHP_Login_System_with_Admin_Features/17/60384/index.html

Basically, it is a login system. There is a session.php and a
process.php that is called when validating a login. The problem I am
having, is on my login form I fill out the fields and then the <form>
calls process.php. In process.php, the $form->num_errors is being set
correctly. Then, it redirects back to my login form.

Well, for some reason I am losing $form->num_errors when returning to
the login form. I am new at this, so I am not sure what is causing
it.

Quick rundown of what I think is happening...

login.php has 'include ('session.php')' at the top...
The $form is created at the bottom of session.php...
login.php submits to process.php...
process.php also has 'include ('session.php')' at the top...
if login is incorrect, process.php calls 'header("Location: ".
$_SERVER['HTTP_REFERER']);'
login.php is loaded and $form is empty

Can anyone give me an idea of where to start looking?

Thanks

.



Relevant Pages

  • Login Script based on Email, IP and sql server backend
    ... My questions concerns building a login system based on checking for the ... I wish to use a sql server backend to house my tables: ... ' Set Private Server Paths ...
    (microsoft.public.inetserver.asp.general)
  • Re: GMAIL RAFI SONGS
    ... Animesh Kumar wrote: ... The password or the id is incorrect, ... I am not able to login. ... Aye dile na kaam ab jeene ki tamanna chod de - ...
    (rec.music.indian.misc)
  • Re: VINA eLink-208
    ... you just telnet to its public ip. ... I ran nmap -p 1-65535 against a host, and it came back with port 23 open. ... Too many incorrect logins...login disabled ... Incorrect login... ...
    (Pen-Test)
  • Re: Why Linux take so long to process username and password?
    ... I meant when incorrect username or password entered. ... "Login incorrect" message. ... Dennis wrote: ...
    (linux.redhat.misc)
  • Login question
    ... I keep having the same problem with login. ... The system keeps indicating that ... the password is incorrect. ... I have been able to reset the password and still ...
    (freebsd-questions)