Solved

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

Posted on 2010-08-18
1
284 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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

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…
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/…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 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

13 Experts available now in Live!

Get 1:1 Help Now