Here's what happens right now: In a forum-type website, a user fills out a form and clicks submit. When the submit button is pressed, the information is saved in the database, posted on the forum and an email is sent with the posting message to the user. Here's what needs to happen: The user clicks submit and the information is saved to the database and posted on the forum as it always has. Then, once 5 minutes has past, the script needs to take the posting message from the database and sends off the email. The reason why the message needs to be taken from the database is because it can be edited for 5 minutes after the original message was posted. I need someone that can write a script that pulls the information from the database 5 minutes after the submit button has been clicked, and email it to the user. This is not going to be an easy task unless you are a complete expert in this area. If you don't have the experience, I can't take a chance on you. I will pay $20 by paypal upon completion.
Hi Goneinsane, I guess that couldn't be done via javascript/jquery, since a user might have logged out and leave your pages before 5 minutes. Also, wouldn't it be a better scheme that if someone has posted, his post will be saved to database with 3 additional fields: a) His email address. b) Time saved: this field will record the time the post is saved. c) Emailed: set to false. This field is just a status whether this post have been emailed/ not. So no email will be sent at the time the post is saved? A 5-minutes PHP cronjob then search the database for posts with "false" Emailed satus. It will only send email to a recipient email address only if the current time has passed 5 minutes from Time saved. After sending, it could set the Emailed status to "true". Let us talk further if this scheme has interested you... Hendra
That is exactly it Hendra. The database already saves the email address and time the reply is created. It's just a matter of saving the "false" to database and run the cronjob for posts with false and then set status to "true".