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. Link to comment https://forums.phpfreaks.com/topic/72159-selected-box-action/ 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. Link to comment https://forums.phpfreaks.com/topic/72159-selected-box-action/#findComment-363846 Share on other sites More sharing options...
zgkhoo Posted October 7, 2007 Author Share Posted October 7, 2007 dun have ppl know abt it? ??? :-\ :'( Link to comment https://forums.phpfreaks.com/topic/72159-selected-box-action/#findComment-364039 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();'> Link to comment https://forums.phpfreaks.com/topic/72159-selected-box-action/#findComment-364051 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 Link to comment https://forums.phpfreaks.com/topic/72159-selected-box-action/#findComment-364175 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.. Link to comment https://forums.phpfreaks.com/topic/72159-selected-box-action/#findComment-364314 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.