locked
New Poster need some help with my code RRS feed

  • Question

  • User739438438 posted

    I'm very new to ASP and I'm trying to get a radio button group to work and it doesn't. Here's what I have:

    If Request.Form("RadioGroup1")(1) <> "" Then messBody = messBody & "New" & vbCrLf & vbCrLf

    If Request.Form("RadioGroup1")(2) <> "" Then messBody = messBody & "Used" & vbCrLf & vbCrLf

    If Request.Form("RadioGroup1")(3) <> "" Then messBody = messBody & "Remanufactured" & vbCrLf & vbCrLf

    If Request.Form("RadioGroup1")(4) <> "" Then messBody = messBody & "Manufacturing" & vbCrLf & vbCrLf


    here is my html code:

    1. <label>
    2. <input type="radio" checked="checked" value="New"
    3. name="RadioGroup1" />
    4. New</label>
    5. <label> <br />
    6. <input
    7. type="radio" value="Used" name="RadioGroup1" />
    8. Used<br />
    9. </label>
    10. <label>
    11. <input type="radio"
    12. value="Remanufactured" name="RadioGroup1" />
    13. Remanufactured</label>
    14. <label><br />
    15. <input type="radio"
    16. value="Manufacturing" name="RadioGroup1" />
    17. Manufacturing</label>
    Saturday, July 11, 2009 6:17 PM

Answers