you would need to structure your database so that it stores all of the data that is given in the form like
name , email, product,,, yada yada yada would all be records that you would need
PHP Code:
if(form_submitted) {
check the date
if date is within 2 days before estimated arrival {
get info
send email
}
else {
if ( connect to database) {
if ( able to write ) {
write data
success message
}
else {
give error
}
else {
unable to connect
}
}
}
else {
print form
}
there is some psuedo code for when the for is initially made... you would need to write a seperate script that would run every day, preferably in the morning probably, that would check the date and would search your database for the date anticipated arrival, and use a "foreach loop" to populate and send each email accordingly.
www.w3schools.org << standards / online tutorials
www.http://dev.mysql.com/doc/refman/5.0/en/ <<mysql manual / tutorial
Bookmarks