This topic is locked

Using 'Email' field in form for sendmail value

10/9/2007 3:57:14 PM
ASPRunnerPro General questions
S
swiersman author

Hi:
I have a simple form where the user enters thier name, phone # and email. I have the form set up to send a notice to me via email that one has been submitted. I'm good there.
NOW,
When I go into another form that aims at the same data, I would like to take the "Email" field value they entered and use it as the From value in an email so that I can then send an email saying I have reviewed their form entries; after I hit the submit button.
How can this be accomplished?

Sergey Kornilov admin 10/10/2007

Use BeforeAdd event of the first form to save email in Session variable:

Session("Email") = dict("Email")


Use Session("Email") variable where you need it.