?
Solved

asp.net classic _ need help on reading a radio button. and formating a email body text

Posted on 2010-08-18
1
Medium Priority
?
297 Views
Last Modified: 2012-05-10
How do I read the radio buttons for RescueType a request the form field?

strTextBody       =  "Rescue Type: " & ((request.Form("RescueType")) Or (request.Form("RescueType"))) & vbcrlf & "FirstName: " & request.Form("FirstName")
the form looks like

Please select an option
O  I want to report a Westie in need  
O  I personally have a Westie who needs to be surrendered  
How may we contact you?  
*First Name    
*Last Name    

<tr valign="baseline" align="left">
                        <td nowrap colspan="2" class="admincategory">
                          <input type="radio" name="RescueType" value="I want to report a Westie in need">
                          I want to report a Westie in need
                          </td>
                      </tr>
                      <tr valign="baseline" align="left">
                  <td nowrap colspan="2" class="admincategory">
                          <input type="radio" name="RescueType" value="I personally have a Westie who needs to be relinquished">
                        I personally have a Westie who needs to be surrendered
                       </td>
                      </tr>

Open in new window

0
Comment
Question by:westdh
1 Comment
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 2000 total points
ID: 33470632
When you have two radio buttons with the same name, as you have, then the value posted back will be the value associated with whichever one is selected:

    selected = Request.Form("RescueType")
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question