Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-09-2004, 09:16 AM
New kid on the block
 
Join Date: Sep 2004
Location: ader di sini... :)
Posts: 5
Rep Power: 0
prinses is on a distinguished road
list down menu...

hi...
emm..sy ade prob psl list down menu dlm asp nyer code nih..so, berharap sesgt ler pd sesaper yg tau camner nk buat utk settlekan prob sy nih...
list menu tu sy dh buat..yg jd prob nyer, xtau camner nk buat action dier pilih user pilih & press the button tepi dier tu..

yg sy buat cenggini, list tu sy senaraikan nama department..then sepatut nyer bila user pilih salah satu department tu then press buttin kt situ..kan dipaparkan lah semua no pc yg ade kt department tuh...so, camner nk buat tu?? itu yg xreti tuh...


pd yg tau camner nk buat code dier tu, hope ada yg sudi menolong... tq
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-09-2004, 04:00 AM
lcf's Avatar
lcf lcf is offline
Pro-Blogger
 
Join Date: Feb 2003
Location: Kluang, Johor
Posts: 2,376
Rep Power: 115
lcf will become famous soon enough
Send a message via ICQ to lcf Send a message via MSN to lcf Send a message via Yahoo to lcf
Refer to HERE to know how to get submited listbox value.

After you get the value then you can use it to search in database to get the departments.
__________________
LiewCF | Malaysia Bloggers Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-09-2004, 08:46 AM
New kid on the block
 
Join Date: Sep 2004
Location: ader di sini... :)
Posts: 5
Rep Power: 0
prinses is on a distinguished road
hi...

thanks to lcf coz suggested that website..
but, i'm still can't solve my prob..

i'm already av my list but...how can i make it work?
b4 this, i just trying to use this code (just trying to see wat happen..)

If request.Form("bahagian") = "0" Then
response.Write("Ini CPU 0")

i think u tau ape output dier...right?? so, i wanna know what code should i write to replace response.write("Ini CPU 0")...u got it wat i mean???

hope sesaper yg tau...leh ler tolong ajar sy.. tq
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-09-2004, 06:47 PM
lcf's Avatar
lcf lcf is offline
Pro-Blogger
 
Join Date: Feb 2003
Location: Kluang, Johor
Posts: 2,376
Rep Power: 115
lcf will become famous soon enough
Send a message via ICQ to lcf Send a message via MSN to lcf Send a message via Yahoo to lcf
Quote:
Originally posted by prinses
so, i wanna know what code should i write to replace response.write("Ini CPU 0")...u got it wat i mean???
Erm... sorry, I don't get what you mean. What do you want to do actually?
__________________
LiewCF | Malaysia Bloggers Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 08-09-2004, 08:39 AM
New kid on the block
 
Join Date: Sep 2004
Location: ader di sini... :)
Posts: 5
Rep Power: 0
prinses is on a distinguished road
ops..sorry!! i thought u know wat i m mean... sorry..

erm..lets me xplain wat i wanna do..

here's the code that i created for my list...
<select name="bahagian" id="bahagian" size="1">
<option>~Pilihan Bahagian~</option>
<option value="0">Semua Bahagian </option>
<option value="1">Kewangan </option>
<option value="2">Pentadbiran </option>
<option value="3">Kejuruteraan Awam </option>
<option value="4">Pertanian </option>
</select> </font> <br>

so, if i used the code below,
If request.Form("bahagian") = "0" Then
response.Write("Ini CPU 0")

the output is... "ini CPU 0" if i selected "semua bahagian" in my list. u got it now??
but..wat i wanna do is, when i select 1 of departments in my list, it should displays the records from my db not like wat i did using the code above.. so, wat a code should i write?? i used access db..

hope anybody can teach me or show me how to do so...tq
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 08-09-2004, 02:27 PM
lcf's Avatar
lcf lcf is offline
Pro-Blogger
 
Join Date: Feb 2003
Location: Kluang, Johor
Posts: 2,376
Rep Power: 115
lcf will become famous soon enough
Send a message via ICQ to lcf Send a message via MSN to lcf Send a message via Yahoo to lcf
do you know how to query database? After you get user selected choice then you can query database to get the result.
__________________
LiewCF | Malaysia Bloggers Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 08-09-2004, 09:55 PM
New kid on the block
 
Join Date: Sep 2004
Location: ader di sini... :)
Posts: 5
Rep Power: 0
prinses is on a distinguished road
do you know how to query database? After you get user selected choice then you can query database to get the result.



erm.. i think that's wat i need to know... can u give some tips??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 09-09-2004, 01:07 PM
lcf's Avatar
lcf lcf is offline
Pro-Blogger
 
Join Date: Feb 2003
Location: Kluang, Johor
Posts: 2,376
Rep Power: 115
lcf will become famous soon enough
Send a message via ICQ to lcf Send a message via MSN to lcf Send a message via Yahoo to lcf
please do your search in Google.
__________________
LiewCF | Malaysia Bloggers Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 10-09-2004, 07:20 AM
New kid on the block
 
Join Date: Sep 2004
Location: ader di sini... :)
Posts: 5
Rep Power: 0
prinses is on a distinguished road
hi...

it's ok now..my prob's settled..tq
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Menu Effect: Webmastermalaysia. cleoz Website Design 3 29-04-2007 12:05 PM
Popup menu problem jhanwt Website Design 2 26-05-2004 08:23 PM
Add option value for List/Menu box kala_krayon Website Design 2 29-08-2002 06:38 PM
Plus-minus menu dwazni Website Design 3 07-06-2002 09:36 PM
Hierarcy menu in dw maman Webmaster Tools 4 01-05-2002 07:30 PM



All times are GMT +8. The time now is 09:26 AM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59