?
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
?
294 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 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

777 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