zgkhoo Posted October 7, 2007 Share Posted October 7, 2007 hi, may i know how to set the respond to action when user choose an option inside a <select></select> box? eg. when user select an option in the <select> box then php search for data inside mysql and then display the required data on the <input type=text> , anyone can lead me or provide me the link of tutorial pls.. thank you very much. Quote Link to comment Share on other sites More sharing options...
zgkhoo Posted October 7, 2007 Author Share Posted October 7, 2007 selected box on change... wat i meant. Quote Link to comment Share on other sites More sharing options...
zgkhoo Posted October 7, 2007 Author Share Posted October 7, 2007 dun have ppl know abt it? ??? :-\ :'( Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted October 7, 2007 Share Posted October 7, 2007 if i understand, you want PHP to do something when an option is selected in a single <SELECT>. if so... add a Javascript onchange() handler to your <SELECT> that either submits the form or uses Ajax to update the page. here is an example that just submits the form: <SELECT NAME='some_name' onchange="this.form.submit();'> Quote Link to comment Share on other sites More sharing options...
zgkhoo Posted October 7, 2007 Author Share Posted October 7, 2007 if i understand, you want PHP to do something when an option is selected in a single <SELECT>. if so... ya, wat u said is wat i wan Quote Link to comment Share on other sites More sharing options...
zgkhoo Posted October 8, 2007 Author Share Posted October 8, 2007 but do u have tutorial site for this method? thanks.. 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.