Forum Moderators: coopster

Message Too Old, No Replies

Hiding login & password fields after login

         

nshack31

10:26 am on Jan 3, 2005 (gmt 0)

10+ Year Member



Hi again. I am hoping to do the following, the homepage shows a username and password field. Once the user enters a scucessfull login, these fields are removed.

In order to achieve this, must the page be based on one big IF ELSE statement? so...

If user logged in hide username & password fields
Else show page with username and password fields?

OR is this acheived by redirecting the user to a page that is not the homepage after a successfull login? so...

the user would login sucessfully and be redirected to a homepage identical to the one with the fields but will have the username & password fields removed?

I've never attempted this before! thanks guys

nshack31

6:22 pm on Jan 3, 2005 (gmt 0)

10+ Year Member



after nearly a day i found the answer here..

[phptutorial.info...]