OK...so I'm working on webbased email and I'm making the inbox with a checkbox next to each message with a delete button at the top of the page. What's the best way to handle the checkboxes?
The problem is that potentially, if the checkboxes were numbered, say, 1-10...by the time they click the messages they want to remove and press delete, someone may have opened their mailbox and deleted a message first.
The only way to avoid this, as far as I know, it to delete by message-id. The program searches the headers for a matching message-id, starting with the last known location.
So, now the question is...how do I make checkboxes for this? Do I set the name to the message-id? If so, how do I figure out what's been submitted? Is there a way in PHP to determine the type if input the data came from?
Thanks!
Lewis