944,111 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 5789
  • PHP RSS
Nov 3rd, 2004
0

Feeding a value in a dropdown list to another dropdown list

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
chunguy is offline Offline
24 posts
since Sep 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Set up manually, php 5.0 with apache's compatible version
Next Thread in PHP Forum Timeline: ftp help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC