Personally I would store that kind of data in a table so its
persistent beyond the session.

If you haven't played with AJAX, that would be a good little widget to
knock out. Make an "Add to Favorites" link/button that calls an AJAX
function that adds the current listing into a user_favorites table (or
whatever your name convention is) behind the scenes. Then all also
create a "Review your Favorites" page that shows the tabelized list of
favorites and allows them to click to each, delete them - and if you
wanted to get fancy, sort them in preferential order.


On Jan 5, 6:25 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I'm not quite sure how to go about creating an 'add to favourites'
> function. It's for a site displaying rental properties. Do you think I
> should I be using session variables to store a list of property
> references or storing the users choices in a table so that they can
> compares their choices later - I've not tackled this before so any
> experiences would be welcome.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to