Jump to content

One button, two actions


This topic is 8408 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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">

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 8408 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.