Forums

This topic is locked

Multiple form actions

Posted 04 Jul 2004 02:32:22
1
has voted
04 Jul 2004 02:32:22 john culp posted:
I have a signup form that inserts a record in a table, but I'd like it to also email a confirmation at the same time. How do you do multiple actions?

Replies

Replied 05 Jul 2004 16:06:11
05 Jul 2004 16:06:11 Simon Martin replied:
You could put a response.redirect at the end of the page that does the insert - going to a page that sends the email populating fields with values from your form. Smart mailer will let you do that, or you could write the CDO for it yourself (let me know if you want some help on CDO).

You could process the email on the same page as the insert, and that way you wouldnt need to pass variables around the place... but by keeping the code separate you make it easier to maintain and you could use the same code to send different emails out

Sharing knowledge saves valuable time!

Simon

Reply to this topic