Your form validation should take place at the target web page of the form. So instead of submitting that form again to another webpage, move that webpage to the same page that you submit to again. There is an extra step there that is unnecessary. Say your name is formpage.php, and it checks for userid and password and if correct, logs the user in. The first part checks to see if the $_POST is set, if not, it shows the form that points to the same page, if so then it logs the user in and links to the rest of the site. Make sense? :)
Main Topics
Browse All Topics





by: TeRReFPosted on 2006-09-13 at 04:10:12ID: 17510727
Can you show us the code?
Also, never rely on JS alone to do the validation, som eusers have JS disabled. Always use a combination of JS and PHP to validate