sungpeng Posted September 29, 2015 Share Posted September 29, 2015 Hi I need a input box, and whenever i key in a letter in it will read the database and fetch result in a small dialogue box beside the form. The dialogue box will disappear if nothing is key in. Can someone help ? Quote Link to comment https://forums.phpfreaks.com/topic/298366-small-box-at-the-side-of-input-form-show-result-fetched/ Share on other sites More sharing options...
Ch0cu3r Posted September 29, 2015 Share Posted September 29, 2015 Can you be more specific? What is the input box for? What is in your database? Quote Link to comment https://forums.phpfreaks.com/topic/298366-small-box-at-the-side-of-input-form-show-result-fetched/#findComment-1521883 Share on other sites More sharing options...
sungpeng Posted September 29, 2015 Author Share Posted September 29, 2015 (edited) First an input box form. When key in the letter, it will search the database and fetch result in a small dialogue box beside the input box. The result fetched is not display on the page itself but a small rectangle box beside the input box form. I need the small rectangle box. Like if you key in the input box on some page, some data will appear on a small pop up box of your past data that you have key in somewhere. Edited September 29, 2015 by sungpeng Quote Link to comment https://forums.phpfreaks.com/topic/298366-small-box-at-the-side-of-input-form-show-result-fetched/#findComment-1521886 Share on other sites More sharing options...
sungpeng Posted September 30, 2015 Author Share Posted September 30, 2015 Like key wording in www.google.com, we haven't completely key in the sentence there is always a dropdown box show the results before we press the search button. Quote Link to comment https://forums.phpfreaks.com/topic/298366-small-box-at-the-side-of-input-form-show-result-fetched/#findComment-1521937 Share on other sites More sharing options...
sungpeng Posted September 30, 2015 Author Share Posted September 30, 2015 How to fetch the data from another php page ? <script> $( "#search" ).autocomplete({ source: availableTags }); </script> <input type="text" id="search"> Quote Link to comment https://forums.phpfreaks.com/topic/298366-small-box-at-the-side-of-input-form-show-result-fetched/#findComment-1521942 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.