Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Send mail and auto submit a form?

Reply
Thread Tools

Send mail and auto submit a form?

 
 
Nicolae Fieraru
Guest
Posts: n/a
 
      03-31-2005
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


 
Reply With Quote
 
 
 
 
Bullschmidt
Guest
Posts: n/a
 
      03-31-2005
<<
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.developersdex.com ***
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Shipping Auto Shipping Scheduling:car moving auto transport linkswanted ASP .Net 1 11-22-2013 07:02 AM
Send a mail with cdosys and save a copy in the Sent Mail folder: how to??? fcetrini@gmail.com ASP General 4 03-20-2007 09:03 AM
Mail.SmtpMail.Send won't send to one of my addresses Nathan Sokalski ASP .Net 3 11-23-2005 09:25 PM



Advertisments