this is not a code "snippet" .... just a class that i have re-used about a 100 times. It is for authenticating users via a passwd file or mysql. Hope it will help someone ... also , if you improve it please email me the changes :) http://mohadib.openactive.org/web_editor/AuthTool.class.php.txt jd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php