简体   繁体   中英

Retrieve data according to selected value of combobox using php mysql, without redirecting to other page

I am developing a project in which i have a website in php and database in mysql. I have linked them well. Now i have combobox in which i have populated it with the data from database. Now the problem is that, on selecting any value from the combobox, the data from database should be displayed below according to value of selected field in combobox without redirecting to any other page.

Without reloading the page? Or just without navigating to another page?

If reloads are ok, just check if the fields are set, and if so, render the page differently.

I suspect you mean without reloads though. For that, you'll need to use AJAX.

There's plenty of tutorials and how-tos out there if AJAX is the path you go. Until you have a specific question, not sure how much help we can give you without going way overboard.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM