PDA

View Full Version : Filter recordset using a cookie (PHP)


kbettenc296716
04-05-2009, 02:38 PM
I would like to filter the recordset in an update page using a cookie from the login page. I have stored the Username in a field in an event registration page. That works fine on the insert page, but when the user wants to update his/her registration I need to be able to bring up their event registration page for them to change.

Ray Borduin
04-06-2009, 10:36 AM
Use the session variable stored during login to filter the recordset for update. Just make sure to include session_start() on top of the page.