After several fixes to my contact form, my text areas no longer work

Discussion in 'C#' started by Ellablue, Mar 5, 2008.

  1. #1
    I've had two problems on my contact form that several members have helped me with, and they have worked, however the last fix I did was so that the asp would come through to the email, looking correctly spaced, rather then a string of letters...that works now, however after I did that, the text areas that are associated with those questions, are not working.
    You can populate them with answers, on the site, (http://www.bigleagueskillllc.com/contact.html)
    however the answers do not show up when the email comes through after being sent.
    Help?Thank you!
    Here are the changed areas of the asp, and the html.
    Dim Body
    Body = Body & "Contact Name: " & ContactName & VbCrLf
    Body = Body & "Contact Phone: " & ContactPhone & VbCrLf
    Body = Body & "Contact Email: " & ContactEmail & VbCrLf
    Body = Body & "Contact Address: " & ContactAddress & VbCrLf
    Body = Body & "Students Name: " & StudentsName & VbCrLf
    Body = Body & "Year of High School Graduation: " & YearofHighSchoolGraduation & VbCrLf
    Body = Body & "Students SAT scores: " & StudentsSATscores & VbCrLf
    Body = Body & "Students GPA: " & StudentsGPA & VbCrLf
    Body = Body & "Please type all that apply: All types of financial aid scholarships Athletic scholarships only Skill development for baseball only" & pleasetypeallthatapplyAlltypesoffinancialaidscholarshipsAthleticscholarshipsonlySkilldevelopmentforbaseballonly & VbCrLf
    Body = Body & "Please type all that apply: College preferences: In state Out of state Public Private: " & PleasetypeallthatapplyCollegepreferencesInstateOutofstatePublicPrivate & VbCrLf
     
    Ellablue, Mar 5, 2008 IP
  2. dylanj

    dylanj Peon

    Messages:
    173
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Does the email come through completely blank? I think it might be that you're using a lot of variables, and i'm wondering if they're defined properly. Add this code to the bottom of that code to see if the variables have any data in them:
    
    Response.Write(Body)
    
    Code (markup):
    If that shows up blank, then the variables aren't being defined...
     
    dylanj, Mar 15, 2008 IP
  3. ChasLaser

    ChasLaser Peon

    Messages:
    160
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try Defining all your varibles...not just Body...

    Dim Body
    Dim ContactName
    Dim All the others

    The rest of the code.
     
    ChasLaser, Mar 16, 2008 IP
  4. lofvenhamn

    lofvenhamn Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    As dylanj wrote, try Response.Write(Body). You could also throw it in between every concatenating line, and see if the string is adding up properly, or if there is one specific part that makes the Body variable blank.
     
    lofvenhamn, Mar 16, 2008 IP