I did Jason but am reworking all the pages and tidying the syntax up and one of the things I never sorted out was the fact that users logging in would be taken to the logged in page although their user data was not displayed and an error told them they logged in incorrectly.
This, from a users perspective, can seem confusing because although they haven't been verified they are looking at what appears to be a members page. But the message tells them otherwise and the PHP code never retrieves their data from the database because they were not successfully verified. I suppose I'm over egging the pudding but I'd like it to be slick that's all. -- ----------------------------- Michael Mason Arras People www.arraspeople.co.uk ----------------------------- "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sunday 11 July 2004 03:47, Harlequin wrote: > > > I have a quick question regarding the above. currently I have a form that > > posts to another page. However, rather than wait until they get to that > > page to verify their login are there conventions that are recognised for > > this process currently...? > > > > For example, my code for the form's header is: > > > > echo "<form action='login_verified.php' method='post' name='Login Form' > > title='Login Form'>"; > > > > How can I ensure that only once a user has been verified that they can see > > the page in my form's action field...? > > At the most basic level a login system would work something like this: > > 1) User submits login credentials > 2) A login script checks credentials, if OK, send user a token (via > session/cookie). In your backend, associate that token with that user and > note that they're logged in. > 3) At the start of all your protected pages, you need to check for the token > and whether it's valid. > > I'm surprised that you're asking this because I thought that you had your > login system all sussed out! > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > ------------------------------------------ > Search the list archives before you post > http://marc.theaimsgroup.com/?l=php-general > ------------------------------------------ > /* > And miles to go before I sleep. > -- Robert Frost > */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php