mikemessiah Posted March 4, 2009 Share Posted March 4, 2009 Hi, I have a database driven site that lists results when searched. I need to have a Tag/Flag button that will change when clicked to show that that result has been Flagged then store the result ID in a session or cookie so that after tagging 3 results the user can click display and it will show those 3 results on a separate page ready for printing. I know how to reload that particular result as to change it to show as flagged without reloading the page but I do not know how to carry the result ID over into a session variable without reloading the page? Please can someone help me out here... Sorry for my noobness... Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/147876-flagtag-and-store-results-in-session-or-cookie/ Share on other sites More sharing options...
Adam Posted March 9, 2009 Share Posted March 9, 2009 AJAX is the answer! Decent tutorial: http://www.w3schools.com/Ajax/Default.Asp Use AJAX to make a HTTP request to your PHP page whenever they tag the 'result'.. Adam Link to comment https://forums.phpfreaks.com/topic/147876-flagtag-and-store-results-in-session-or-cookie/#findComment-780159 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.