Need to email form data, as well as pass variable to results page. Can it be done?

Discussion in 'C#' started by noslenwerd, Aug 5, 2009.

  1. #1
    Hello,

    Basically what I would like to see happen is someone fill out this form, and have the information emailed to a certain email address...

    http://www.goleasing.com/portal/usfitness/

    And have the "Equipment cost" field pass on to the page below.... (actually have it pass directly to the results page, which you get after you click go on the link below)

    http://www.goleasing.com/online_application_quick_lease_quote.asp

    Can this be done? I have a very very basic knowledge of ASP so please be gentle hah... Thanks!
     
    noslenwerd, Aug 5, 2009 IP
  2. Free Born John

    Free Born John Guest

    Messages:
    111
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    simple enough,

    start by doing the email then either cache the value in a sessoin variable and redirect to the new page or pass the value as a parameter on the querystring when you response.redirect to the next page.

    Lots of other options too.
     
    Free Born John, Aug 10, 2009 IP
  3. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #3
    The link below will show you how to send emails using CDOSYS:
    http://www.w3schools.com/asp/asp_send_email.asp

    Then, after sending the message try:
    
    Response.Redirect "online_application_quick_lease_quote.asp?equipmentCost=" & Request.Form("equipmentCost")
    
    Code (markup):
    and to access the value from the second page:
    
    Dim ec
    ec = Request.QueryString("equipmentCost")
    
    Code (markup):
     
    camjohnson95, Aug 12, 2009 IP