How about giving users a chance to pass some context to the completion function, like an array of acceptable commands? Otherwise for a system with 200 various menues you end up coding 200 function names. August -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]