Solved

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

Posted on 2010-08-18
1
293 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 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

Industry Leaders: 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…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

705 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