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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Submit, validate and mailto

Status
Not open for further replies.

lynque

IS-IT--Management
Joined
Sep 30, 2004
Messages
124
Location
CA
Hello All,

I have a page that validates and submits the order to the DB, I would like to be able to send an email when there is an order placed automatically.

Code:
					<input type="Submit" value="Submit" onClick="mailto:2@web.com?Subject=New Order">

The action of the form submits to a Validate and Insert page which works fine but no email is sent...

Any help is much appreciated
 
[tt]onclick[/tt] accepts javascript commands, not regular html links. Also, onclick will override the regular behaviour of the button, so you can hardly expect it to do two things at once. Another thing is, the above code (if it were palced correctly) would not send an email but rather open an email client and wait for the user to send the mail. That is not good business practice. Since you are using some sort of server side language, send the mail through that on the page where you validate and insert the data.
 
Thanks Vragabond,

I was thinking along the same lines but the validate and insert page has a little thank you for your purchase that the user sees. If I was to have the mail sent from this page wouldn't the user see the same info all over again?

The Language is ASP

I'm kind of a newbie so I'm not really sure how to accomplish this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top