I am building my own web site and on the main page, there is an option to login to a users' account if they so desire. This is not a requirement. After they login, they can browse through products and and then to the shopping cart. When they are ready to checkout, they are presented with a form asking for name and address and other information. What I want to do is when the form is presented and they are logged in, the form will be populated with the information retrieved when they logged in. below is the validation/login script I am working on. I want to keep the values of the array $user_info during the entire session and I have register_globals disabled. Someone please help. <?php function validate_user($user_email, $user_password){ $row=array(); $q = db_query("SELECT ss_first_name, ss_last_name, ss_email, ss_phone, ss_address_1, ss_address_2, ss_city, ss_state, ss_zip_1, ss_zip_2 FROM ".USER_TABLE." WHERE ss_email='$user_email' AND ss_password='$user_password'") or die (db_error()); $row = db_fetch_row($q); return $row; } if(isset($_POST["login_submitted"])){ $user_info=validate_user($_POST["user_email"], $_POST["user_password"]); } ?>