Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this message<< 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? 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.examnotes.net ***
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.