•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 375,207 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,300 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 4273 | Replies: 0
![]() |
hihi,
can someone help me with this problem;
i want to be able to feed a value from a dropdown list A as a condition for items in dropdown list B. both dropdown list are in the same form. the values for both dropdown list are extracted from my mysql database.
i've tried to refreshing the page with javascript with this
function update(theForm){
location.href = location + "?Category=" + theForm.CategoryName.value }
this works fine if i only click once on dropdown list A but the if i happen to click again from dropdown list A, then the link would be something like "http://localhost/product.php?Category=food?Category=drink"
how to i replace the category argument value?
thanks in advance
can someone help me with this problem;
i want to be able to feed a value from a dropdown list A as a condition for items in dropdown list B. both dropdown list are in the same form. the values for both dropdown list are extracted from my mysql database.
i've tried to refreshing the page with javascript with this
function update(theForm){
location.href = location + "?Category=" + theForm.CategoryName.value }
this works fine if i only click once on dropdown list A but the if i happen to click again from dropdown list A, then the link would be something like "http://localhost/product.php?Category=food?Category=drink"
how to i replace the category argument value?
thanks in advance
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
Similar Threads
- Dropdown list in ASP.NET - How to get value selected (ASP.NET)
- get data from database in dropdown list (C#)
- Dynamic dropdown list (ASP.NET)
- Dropdown list Last value (ASP.NET)
- hi problem in dropdown list (ASP)
- Retrieving Multiple Columns into Dropdown List (ASP.NET)
- DropDown List (VB.NET)
Other Threads in the PHP Forum
- Previous Thread: Set up manually, php 5.0 with apache's compatible version
- Next Thread: ftp help


Linear Mode