chirdeep_tomar Posted January 3, 2007 Share Posted January 3, 2007 I want to populate data in one combo box depending upon the previously selection made in last combo box. I have my first combo box which contains 3 channel names. Now, I want to get the serial names for the channel selected by the user in first Combo box ie. channel combo. In short data in second combo shuld be relative to selection made in first combo. I m using ONBLUR() or ONCHANGE() event in html <Select> statement.... please guide me how to call php function to retrive data(serial names) from the database, so that i can put serial names in serial combo box. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 3, 2007 Share Posted January 3, 2007 You cannot call PHP functions from HTML. PHP oly runs when ever you go to the page. PHP is not like javascript where you can call javascript from HTML. What you'll want to do is look into AJAX where you can use HTML/Javascript to call a PHP function when on the web page. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.