Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto Submit form or submit to multiple forms

Status
Not open for further replies.

ptuck

MIS
Aug 8, 2003
130
US
I am saving the users data to an Access DB then pulling out the submitted data and emailing to them their submission. Right now the user clicks once to submit data to the database. This event calls savedata.asp, which saves the record to the DB then pulls out the data and displays it in the browser. The user then clicks another button to get the data emailed to them.

What I would like to do is have the user click one submit button that will post the data to the database and send to my email form. Is this possible? I guess the short version of my question is can I post the data from my entry form to my savadata page and my email page at the same time? Or can I post the data then pull the data out and submit it to my email form??? Hope I made sense...
 
just run the scripts one after another in the savedata.asp page.

it's really that easy. unless i'm missing something

___________________________________________________________________

The answer to your ??'s may be closer then you think. faq333-3811
Join the Northern Illinois/Southern Wisconsin members in Forum1064
 
Let me make sure I am following you. Right now I am writing to the database on the savedata page. I then pull the data back out of the DB and display it in the browser. How do I direct it to my email form without displaying and having the user click a button?

Apparently it is so easy that I am over looking the solution.
 
you could just pass the relevant variables as parameters over to an email function somewhere between saving and displaying.

You could #include the mailing page after saving, and then when the mail operation completes #include your display page.

you could use server.transfer to go from save to mail then on to display.

or any combination of the three of course.



Chris.

Indifference will be the downfall of mankind, but who cares?
 
Thanks guys for the advice. Onpnt was correct when he said it was just that simple. My brian finally woke up this morning and I just dropped some JavaScript after my SQL instert statement. Thanks again...

I love being able to bounce this stuff off you guys. This way I only look stupid to you all (who I probably don't know) and not my coworkers (HAHAHA)

Thanks again for the help.........
 
Hey ptuck,

no problem on getting some ideas out there. looks like ChrisHirst followed up perfectly.

Remember, there are no stupid questions.

___________________________________________________________________

The answer to your ??'s may be closer then you think. faq333-3811
Join the Northern Illinois/Southern Wisconsin members in Forum1064
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top