What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    How can I create a form to query a mysql database?

    Asked by dustinvz on January 27, 2012 at 03:54 AM


    I have a lit of members in a MySql database on my website.

    I need to create a form where users can input their email adress to check if they are on the member database,

    any idea how I could do this?




  • Profile Image
    JotForm Support

    Answered by mliz on January 27, 2012 at 04:07 AM

    Please visit the following article from our User Guide for information on how to query a database using JotForm.

    How to Insert or update form submissions to your MySQL database using PHP

    Hope this helps, if you have further questions feel free to ask.

  • Profile Image

    Answered by dustinvz on January 27, 2012 at 05:00 AM
    I need to get a query result from the form, not inject the data into a database.
    Sent from my iPhone
  • Profile Image

    Answered by fxr on January 27, 2012 at 08:46 AM

    You would need to use a Custom URL as a thankyou page which opens and checks against an entered email address when the user hits the submit button. 

    The php should be relatively straightforward. 

    You would need to enable Sending of Post Variables from your form, and then work out the variable name for the email field. 

    This guide should help you with that. 


    This a basic section of php code which should provide this functionality.  -> http://pastie.org/3263233 Save that to your webserver as checkemail.php (or whatever) then point JotForm at that as your Custom URL thankyou page.

    I have written that code off the top of my head and is untested, but it should work, I have put comments in sections you need to edit to suit your database.


    That should at least get you started..

  • Profile Image

    Answered by khrisell on July 04, 2013 at 11:56 PM

    We are happy to announce that we have released Jotform Webhooks,  this feature would replace Send Post Data + Custom URL Thank You Page workaround in order to help you transfer forms data to your own database using your own script codes.

    To know more about Jotform Webhooks, please click here.


    Thank you for using JotForm. :)