Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript PHP, MySQL Query via AJAX Re: PHP, MySQL Query via AJAX

#72866
kalps1982
Member

Yes, this is possible.

You can use jQuery Ajax for doing this so. Using jQuery it would be easier for you to implement Ajax functionalities.

At server side you have to create a PHP file which accepts POST request. On receiving request from Ajax this file would do necessary process and return you dropdown list. (Ajax request can receive response in form of XML, JSON or normal HTML as text form).

When jQuery Ajax receive response you can use jQuery functionality to dynamically add dropdown in your page by using .append() function.