Re: ASP and form submission image cont..
by "Rossi Designs" <webmaster(at)rossidesigns.net>
|
Date: |
Thu, 13 Jan 2000 13:37:24 -0500 |
To: |
<pbabcock(at)bgsgroup.com>, <hwg-languages(at)hwg.org> |
References: |
bgsgroup |
|
todo: View
Thread,
Original
|
|
You might try giving them all the same name but assigning them different
values as if they were radio buttons or check boxes.
Rossi Designs
(904) 226-8979
P.O. Box 1084, Holly Hill, Florida 32125-1084
http://rossidesigns.net
----- Original Message -----
From: Phil Babcock <pbabcock(at)bgsgroup.com>
To: <hwg-languages(at)hwg.org>
Sent: Thursday, January 13, 2000 11:04 AM
Subject: ASP and form submission image cont..
| Someone, cyanide_7 I believe, suggested that I test for which input image
| was clicked on my form. How do I do this?
|
| I have three input type=images with the names imageH imageL and imageM. I
| have tried this code:
|
| <%
| dim strletter
| if not isnull(request.form("imageH") then
| strletter = "H"
| response.write "h"
| end if
| %>
|
| But this doesnt work because even if I click on the other images I still
| get the "h". What I need to do is detect which image was clicked and have
| strLetter hold either an h, l, or m based upon this. Something like
| -----
| if request.form("imageH").clicked = true then
| -----
| would be perfect but I dont think this exists.
|
| I also tried this:
|
| <input type=image onclick="<% session("HML")="H" %>"> etc but this also
| doesnt work because the asp code gets parsed before anything is even
| clicked. Is there a way to capture the click of this input in server side
| vbscript?
|
| thanks all
|
| Phil Babcock
| Lead Web Designer
| BGS Group Inc.
|
|
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA