Reply to Question about form classes

Your name:

Reply:


Posted by stacey on 08/31/07 17:15

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация