How can I make a WordPress form that can update form results without changing the URL?

Murtuza Millwala August 17, 2012

I have a form on my WordPress site which is populating two drop downs with custom db query(select query) using wpdb, from a custom db which I added to the database, now after selecting some values from the drop downs, when I click submit, it should again check the values from drop downs into the db and return the result on the same page, without changing the url.

Is that thing possible?

  1. muotechguy
    August 22, 2012 at 9:17 am

    Use jQuery to bind to the submit button, then grab the value and send an ajax request to a php db handler. It's quite advanced programming though, and there arent any ready made solutions. You'll need to learn some jquery (very simple), and php, and mysql.

  2. Jamie VanRaalte
    August 17, 2012 at 2:44 pm

    It should be, probably with jQuery. I personally use Contact Form 7.