(B (B (B (B (B
when the page is submitted, the page has all the form (Belements of the page.
(B
say, if you have a check box (eg, chkBox1), a drop-down box (B(eg, cmbList) and a submit button (cmdSubmit)
(B
 
(B
Once u click the submit button, if you have checked the (Bcheck box and if you response.write request.form, it wld show u the below (Binfo:
(B
 
(B
chkBox1=ON,cmbList=some_list_item,cmdSubmit=Press (Bme
(B
 
(B
so, Len(request.form("cmdSubmit")) = 8 --> Press me, (Bwhich indicates that you have pressed the submit button.
(B
Clear?
(B
 
(B
ILyas

(B
(B
(BFrom: Kim Szeto (B[mailto:[EMAIL PROTECTED]
Sent: Sunday, October 24, 2004 (B12:48 PM
To: [EMAIL PROTECTED]
Subject: RE: PSC Help: How (Bto get the value where selected from a menu/list box ?

(B
(B
Thanks ILyas. It succeeded. Besides, could you you tell me the logic why it (Bneed to check the length of the submitbutton.
(B
 
(B
Kim

ILyas <[EMAIL PROTECTED]> wrote:
(B
(B (B
Sorry, your query seems to be (B unclear.
(B
PLs (B check whether the below criteria is what u try to achieve.
(B
 
(B
You (B have a list box where you fill the contents from the db.
(B
Once (B filled, you want the user to select a specific item and use that while (B submitting the form, right?
(B
 
(B
dim (B strListVal
(B
if (B len(request.form("submitbutton"))>0 then 
(B
    strListVal = (B request.form("listBox")
(B
end (B if
(B
 
(B
this (B must give the selected item from that list.
(B
 
(B
If u (B still have problems, i suggest googling some examples regarding the list (B control.
(B
 
(B
ILyas
(B
(B
(B
-----Original Message-----
From: Kim Szeto (B [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 23, (B 2004 9:33 PM
To: [EMAIL PROTECTED]
Cc: (B [EMAIL PROTECTED]
Subject: RE: PSC Help: How to get (B the value where selected from a menu/list box ?

(B
It return nothing. I want to get the value from a list where contains (B data input from database. It is because the data may be changed anytime so I (B can't hard code into the list. I am a beginner of ASP.CoulduhelpDIV (B
 
(B
Kim

ILyas <[EMAIL PROTECTED]> wrote:
(B
(B (B
why doesnt that work? what value do you (B get?
(B
what you mean by menu/list (B box?
(B
 
(B
ILyas
(B
(B
(B
-----Original Message-----
From: Kim Szeto (B [mailto:[EMAIL PROTECTED]
Sent: Saturday, October (B 23, 2004 3:15 PM
To: (B [EMAIL PROTECTED]
Subject: PSC Help: How to get (B the value where selected from a menu/list box ?

(B
Dear all,
(B
 
(B
I have designed a menu/list box at a ASP web page. It can retrive (B data from database and show them out however I don't know how to write (B the code that what the value is the user selected. It  is because (B the code(for example) : "value=request.form("select_1") is not work (B at this situation. So does anyone can tell me the way or the logic to (B get the value that is selected from a menu/list box ?
(B
 
(B
Thanks
(B

$B$BA49A:G-`
http://mobile.yahoo.com.hk/


To (B unsubscribe, send an email (B to:
[EMAIL PROTECTED]






To (B unsubscribe, send an email (B to:
[EMAIL PROTECTED]




(B

$B$BA49A:G-`
http://mobile.yahoo.com.hk/


To (B unsubscribe, send an email (B to:
[EMAIL PROTECTED]






To (B unsubscribe, send an email (B to:
[EMAIL PROTECTED]




(B

$B$BA49A:GBg
http://mobile.yahoo.com.hk/

(B

(B (BTo unsubscribe, send an email to:
(B[EMAIL PROTECTED]
(B
(B
(B

(B (B
(B (B (B (B (B (B (B (B (B (B (B (B
Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=315388.5526708.6599542.3001176/D=groups/S=:HM/A=2372354/rand=213454193
(B (B (B (B (B (B (B (B
(B
(BYahoo! Groups Links
(B (B
(B
(B (B (B (B (B

Reply via email to