The code is in the wrong order. Since you are setting the session variable to the value from the recordset, it needs to be below the recordset on the page. Just move the code down below the recordset on the customer_update page and it should fix the problem.