Home > Archive > ASP > March 2005 > Send mail and auto submit a form?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Send mail and auto submit a form?
|
|
| Nicolae Fieraru 2005-03-31, 3:56 am |
| Hi All,
I am working on a script and I have a form to a page to be submitted
(POST-ed) to an external site.
I need that when the user submits the form, first step is to send an email
using an asp script and only after that to post the information to the web
site. I can send the email but I don't know how to post the form
automatically after I send the email. I think I can use javascript, but
maybe there is a better way of doing it?
Regards,
Nicolae
| |
| Bullschmidt 2005-03-31, 3:55 pm |
| <<
I am working on a script and I have a form to a page to be submitted
(POST-ed) to an external site.
I need that when the user submits the form, first step is to send an
email
using an asp script and only after that to post the information to the
web
site. I can send the email but I don't know how to post the form
automatically after I send the email. I think I can use javascript, but
maybe there is a better way of doing it?[color=darkred]
To submit a form is a client-side thing to do.
You could have a page with a bunch of hidden fields filled with info
that immediately gets submitted with JavaScript like this toward the
bottom of the page:
<script type='text/javascript'>document.myform.submit();</script>
Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex http://www.developersdex.com ***
|
|
|
|
|