Click to See Complete Forum and Search --> : Inactivate User Account


NinaWilliam
03-09-2006, 03:37 AM
Inactivate User Account

If a user is already logged in and the administrator closed or inactivate his account
and the user clicked on a button, he will get an error message.

so, is there away to prevent the administrator from inactivating users accounts while
they are loggedin?

Nina

NinaWilliam
03-12-2006, 04:56 AM
okay.. how can i disable the inactive button for the logged in user in the administrator screen?.. i mean can i write a code that checks who is logged in and who is not? and how?

JPnyc
03-12-2006, 01:55 PM
WHat are we talking about here? User of what?

chrismartz
03-12-2006, 08:14 PM
You can put a simple "if" statement that pulls the information from the database as to whether or not the user is logged in. If they are, do <input type"submit" value="Remove" disabled /> but if they aren't, just don't put in the disabled part. Hope this helps.

NinaWilliam
03-13-2006, 06:29 AM
thanks guys.. i also find an articale that might help.. i want to share it with you..
here is the URL:

http://www.stardeveloper.com/articles/display.html?article=2002102501&page=1