when the page is submitted, the page has all the form
(Belements of the page.
(Bsay, if you have a check box (eg, chkBox1), a drop-down box
(B(eg, cmbList) and a submit button (cmdSubmit)
(BOnce 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:
(BchkBox1=ON,cmbList=some_list_item,cmdSubmit=Press
(Bme
(Bso, Len(request.form("cmdSubmit")) = 8 --> Press me,
(Bwhich indicates that you have pressed the submit button.
(BClear?
(BILyas
(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(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 ?
Thanks ILyas. It succeeded. Besides, could you you tell me the logic why it
(Bneed to check the length of the submitbutton.
(BKim
ILyas <[EMAIL PROTECTED]> wrote:
(BILyas <[EMAIL PROTECTED]> wrote:
(B (B(BSorry, your query seems to be (B unclear.(BPLs (B check whether the below criteria is what u try to achieve.(B(BYou (B have a list box where you fill the contents from the db.(BOnce (B filled, you want the user to select a specific item and use that while (B submitting the form, right?(B(Bdim (B strListVal(Bif (B len(request.form("submitbutton"))>0 then(BstrListVal = (B request.form("listBox")(Bend (B if(B(Bthis (B must give the selected item from that list.(B(BIf u (B still have problems, i suggest googling some examples regarding the list (B control.(B(BILyas(B(B (B-----Original Message-----(B
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 ?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(BKim(B
ILyas <[EMAIL PROTECTED]> wrote:(B (B(Bwhy doesnt that work? what value do you (B get?(Bwhat you mean by menu/list (B box?(B(BILyas(B(B (B-----Original Message-----(B
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 ?Dear all,(B(BI 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(BThanks(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
$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
http://mobile.yahoo.com.hk/
(B (BTo unsubscribe, send an email to:
(B[EMAIL PROTECTED]
(B
(B (B
(B (B
(B (B (B (B
| Yahoo! Groups Sponsor | (B|
|
(B|
(B
(BYahoo! Groups Links
(B
-
(B
- To visit your group on the web, go to:
http://groups.yahoo.com/group/PlanetSourceCode/
(B - To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
(B - Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. (B
