drdigital9 Posted July 11, 2001 Posted July 11, 2001 Philip, I just went through the same thing. The solution is this. Have the Submit button create the new record as normal, then have the page go to a redirect page for a brief second, and then on to the confirmation page. The redirct page will handle the e-mail. Example Code for the redirect page: <META HTTP-EQUIV="refresh" content = "1;URL=FMPro?-db=database.fp5&-lay=Layout1&-format=gb_sum.htm&[email protected]&[email protected]&-mailsub=Subject line text goes here&-mailhost=mail.domain.com&-mailformat=mail.txt&-recid=[FMP-Currentrecid]&-Find">
Vaughan Posted July 12, 2001 Posted July 12, 2001 Philip No you don't have to have created the record before sending the e-mail: you just have to have their e-mail address. drdigital9's reply is a good way to do it if the e-mail address is unknown but being entered into the form. The other way s to get people to "log-in" or register beforehand, and store the e-mail address as a cookie or token.
Philip Sommers Posted July 12, 2001 Posted July 12, 2001 I am trying to use a single "submit" button for two tasks. First, to create a new record, and then to kickoff a confirmation e-mail to the applicant that their record has been created. I know that I have to create the record before I can generate the e-mail. I would prefer to use mail tags instead of calling a script, but if I can use one button with a script, I'll do it. Has anyone done this using a single button, or am I going to have to go to a second screen to generate the e-mail? Any help is greatly appreciated. Regards, Philip Sommers Huntsville, AL
Philip Sommers Posted July 12, 2001 Posted July 12, 2001 Sounds like a perfect solution ... Thanks very much, guys! Regards, Philip
Recommended Posts
This topic is 8604 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now