Solved

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

Posted on 2010-08-18
1
288 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 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

815 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now