Hi, i've been playing for a while with this code...and looks just like i need. Can you tell me where you suggest the function "generate_random_string" (or what ever is used for adding valid codes)..should go... Thanks for your time.