Ian, thanks for replying! I have been thinking about a solution like that but Im not sure how to do it with my VERY limited knowledge in PHP. Is there a way using accomplishing this only using the WA server behaviours or do one have to handcode this function?!
When a new user signs up there is no password inserted into the db as choosed by me when creating the signup page. I have 4 accesslevels on my site. 1= Visitors, 2= Applicants (People who sign up but are not yet approved), 3 = Approved users & 4= Administrators. When a new user signs up he/she is asigned value 2= applicant in db. Ive then set up rule on login page to only allow accesslevel only 3-4 users to be able to login.
What I have now is a admin/userupdate page where I can change the accesslevel value for a previously signed up user who is not yet able to login. At the time I change the accesslevel for that user to approved I wonder if one could implement the random password behaviour to autogenerate a password that is sent to the approved user and at the same time insert this password in db for that user.
On the userupdate page I have now it works inserting a password for a user in the initial empty password field manually and its inserted correctly in db but what I really want is to have it automated when I change the accesslevel for the user and press submit.
I do understand what you say about having a hidden password field inserting a static password on the signup page but that should not matter if the password field is blank or filled with some initial value when entering the userupdate page?
Im not smart enough yet to figure out how to do this correctly on my own so I hope for some more input!?
I did find another thread that deals with similar problem but Im not positive how I can implement this for my needs!? showthread.php?t=21907
/Martin J.