petervdvoort Posted June 12, 2006 Share Posted June 12, 2006 Hello All,I have an Question.I use a form with two select fields. If I select an item in field one. De page has to auto update the page so that the data can be loaded in the second field.My Question is how does this work?GreetingsPeter Link to comment https://forums.phpfreaks.com/topic/11770-onselect-fleids/ Share on other sites More sharing options...
Barand Posted June 12, 2006 Share Posted June 12, 2006 If you have a data structure like[code]country city--------- -----------id --+ idctry_name | city_name +--< ctry_id[/code]then you can use something like the baaSelect class in my sig. This will create the required javascript arrays and functions to update the second select when the first changes.Alternatively, you can use [a href=\"http://members.aol.com/barryaandrew/xmlhttp/article.html\" target=\"_blank\"]AJAX / xmlhttp[/a] Link to comment https://forums.phpfreaks.com/topic/11770-onselect-fleids/#findComment-44555 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.