Re: ASP and Forms...
by "Steve Cost" <scost(at)neo.rr.com>
|
Date: |
Wed, 12 Jul 2000 20:15:31 -0400 |
To: |
"Geuka Amusa" <amusa(at)easeinternet.com>, <hwg-languages(at)hwg.org> |
References: |
easeinternet |
|
todo: View
Thread,
Original
|
|
G,
First, there is something strange about your ASP statement .... I would
assume you want to assign a variable to Request.Form("fieldname"), but all I
see is the standalone <%=Request.Form("fieldname")%> ?? but, that point
aside,
you test the value of Request.Form("radiogroup") and do something with that
knowledge. e.g.,
SELECT CASE Request.Form("radiogroup")
CASE "1"
do something #1
CASE "2"
do something #2
etc. Or you could IF THEN ELSEIF statements.
hth,
--
Steve C
www.ReadersOpinions.com
-If the only thing to survive a plane crash is the black box,
why don't they make the whole plane out of the black box?
----- Original Message -----
From: Geuka Amusa <amusa(at)easeinternet.com>
To: <hwg-languages(at)hwg.org>
Sent: Wednesday, July 12, 2000 6:55 PM
Subject: ASP and Forms...
| Here's a Form/ASP Question for you.
|
| I use the following code to grab form fields that are posted to an active
| server page:
|
| <% If Request.Form("fieldname") <> "" Then %><%= Request.Form("fieldname")
| %><% End If %>">
|
| If I am using a group of radio buttons with the same name, ie
|
| <INPUT TYPE="radio" NAME="radiogroup" value = "1">
| <INPUT TYPE="radio" NAME="radiogroup" value = "2">
| <INPUT TYPE="radio" NAME="radiogroup" value = "3">
| <INPUT TYPE="radio" NAME="radiogroup" value = "4">
|
| how can I get my ASP code to tell which of the four radio button was
| selected?
|
| Thanks for your assistance.
|
| G
|
|
|
|
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA