kvnirvana Posted May 2, 2010 Share Posted May 2, 2010 Help, i've got a problem ,I’ve made a drop down list populated from af mysql database What I want to do is that when you click on one of the values from the drop down list which get populated by $problem it shows a new field below the drop down list with the function rating_bar ($_GET['id'],6); So depending on what the user picks from $problem the function rating_bar ($_GET['id'],6); will change. Link to comment https://forums.phpfreaks.com/topic/200485-help-drop-down-list/ Share on other sites More sharing options...
Ken2k7 Posted May 2, 2010 Share Posted May 2, 2010 If you're using C#, then just add an OnClick otherwise, you need AJAX. Link to comment https://forums.phpfreaks.com/topic/200485-help-drop-down-list/#findComment-1052059 Share on other sites More sharing options...
kvnirvana Posted May 2, 2010 Author Share Posted May 2, 2010 I'm using php and mysql, i'm a newbie so i'm still learning. I have read about Ajax, and maybe thats what i need to do, but I don't know how to get started. How would I do it if I wanted to use Ajax? Link to comment https://forums.phpfreaks.com/topic/200485-help-drop-down-list/#findComment-1052092 Share on other sites More sharing options...
kvnirvana Posted May 3, 2010 Author Share Posted May 3, 2010 Any suggestions? I'm totally lost Link to comment https://forums.phpfreaks.com/topic/200485-help-drop-down-list/#findComment-1052328 Share on other sites More sharing options...
Muddy_Funster Posted May 3, 2010 Share Posted May 3, 2010 Basic javascript can also run off an onClick or onChange function of a form item, and I think *not certain here so someone will need to yay or nay this* that you can nest a php include within a java function. Try a search on "Java onChange" and see what you get. Link to comment https://forums.phpfreaks.com/topic/200485-help-drop-down-list/#findComment-1052382 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.