Readers like you help support MUO. When you make a purchase using links on our site, we may earn an affiliate commission. Read More.
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?
2012-08-22 09:17:22
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.
2012-08-17 14:44:16
It should be, probably with jQuery. I personally use Contact Form 7.