sivsenxml_3969 wrote:
> Hi all,
> 
> I have created the login page in html and i did validation through
> external php script. If the user valid it goes to index.php. Again the
> user goes back to login page, it will again ask the user to login.
> 
> It will not go to main page again. How to do this?
> 
> Please suggest me.
> 
> Thanks
> Nathan

01102008 1836 GMT-6

Nathan, this is what I do: I do everything on a single page. I first 
check to see if the page has been submitted with a session variable, and 
that variable is set only when the page has been submitted. If it hasnt 
been set then I echo out the html for the page. If it has been submitted 
  get the variable and then grab the data from the db. I check the 
username and password. If that passes I redirect the page. If it doesnt, 
I either redisplay the page without saying which is wrong or (depending 
on the clients requests) Ill repost the page but say the pw or the user 
was wrong.

Saying that, you will have to post your code so we can take a look to 
help you further.

Wade

Reply via email to