Backstory: I'm writing a thing in PHP/PostgreSQL/XHTML for a website that's basically a mini Facebook. Specifically, it's to help alumni of a university student group reconnect with each other. So they can register there, and once they log in, they have a little profile where they can talk about what they're doing now, there's a "community wall" where they can write stuff, and they can upload old photos and things like that.
The problem: Well! There's also an "Events" feature I'm writing, which is what I'm having the problem with. We're having a reunion coming up and we'll be using the Events feature to display all the information and allow people to RSVP, just like how Facebook does.
To invite someone, you just specify the name and e-mail address, then they're sent an e-mail inviting them, with the link to the Event page where they can RSVP.
I'd like for anyone to be able to RSVP without having to be registered with the rest of the site, but if they do end up registering, I'd like that information to be linked to their account without them having to RVSP again when they're logged in, you know?
Any ideas how to do this? The one method I was toying with was, when they RSVP anonymously, save their e-mail address as a cookie, then if they ever go to register on the site, make their e-mail address "hard coded" so they can't change it, so the backend knows it's the same person and can consolidate the information. But that's bad for security reasons, especially if this occurs on a public computer. Also for "usability" because the e-mail address we invite them with may not be the one they prefer to use.
So as you can imagine this is a bit of a pickle. Any help would be greatly appreciated!
(I don't need code snippets, I'm looking more for "conceptual" advice, thanks!
)
The problem: Well! There's also an "Events" feature I'm writing, which is what I'm having the problem with. We're having a reunion coming up and we'll be using the Events feature to display all the information and allow people to RSVP, just like how Facebook does.
To invite someone, you just specify the name and e-mail address, then they're sent an e-mail inviting them, with the link to the Event page where they can RSVP.
I'd like for anyone to be able to RSVP without having to be registered with the rest of the site, but if they do end up registering, I'd like that information to be linked to their account without them having to RVSP again when they're logged in, you know?
Any ideas how to do this? The one method I was toying with was, when they RSVP anonymously, save their e-mail address as a cookie, then if they ever go to register on the site, make their e-mail address "hard coded" so they can't change it, so the backend knows it's the same person and can consolidate the information. But that's bad for security reasons, especially if this occurs on a public computer. Also for "usability" because the e-mail address we invite them with may not be the one they prefer to use.
So as you can imagine this is a bit of a pickle. Any help would be greatly appreciated!
(I don't need code snippets, I'm looking more for "conceptual" advice, thanks!