help with triggering a PHP script
Posted: Fri Jul 30, 2010 4:43 am
Hi guys, hoping someone can help point me in the right direction here...
I'm working with a Flash developer to develop an competition page where users can enter multiple rounds of competitions. Each time they enter a competition they'll have an entry added to the db. After they've finished playing we want to send them an email summarizing all the competitions they've just entered.
The problem I have is figuring out how to trigger the script to send the email. eg. the user might play 2 rounds of competitions, and have them both added to the db. They might then browse away from the page without clicking a 'finish playing' button or anything, but we still want to send them the email as they've finished playing.
It's got me stumped as to how to trigger the email without any action from the user? I've got a good knowledge of PHP but definitely am not a guru, so I'm hoping someone can give some tips!
Thanks
I'm working with a Flash developer to develop an competition page where users can enter multiple rounds of competitions. Each time they enter a competition they'll have an entry added to the db. After they've finished playing we want to send them an email summarizing all the competitions they've just entered.
The problem I have is figuring out how to trigger the script to send the email. eg. the user might play 2 rounds of competitions, and have them both added to the db. They might then browse away from the page without clicking a 'finish playing' button or anything, but we still want to send them the email as they've finished playing.
It's got me stumped as to how to trigger the email without any action from the user? I've got a good knowledge of PHP but definitely am not a guru, so I'm hoping someone can give some tips!
Thanks