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

    Unable To Pass POST Data From Form and Insert To MySQL Database Using PHP script

    Asked by Michael on January 13, 2015 at 07:17 AM

    hi I have looked over several different tutorials on this subject and this far in for some reason I have not yet managed to get my form data into my database what are the chances if I give you my codes you can review them for m and *hopefully* shed some enlightening on me please........

    the system I have been trying t use is as follows:

    I have a rather crude looking form consisting of a method, action = post [to a PHP action file &

    a text area & lastly a submit button........

    and that's it nothing more in that html file;

    the action file opens a DB connection my DB with my user name and p/w and of course the DB name

    once I submit my form I receive my pre defined message that the data was saved so I know there are no error there however once I go in PHPmyadmin and look at my table there has been no data saved there since I manually inserted 2 rows

    This is a re-post of a comment on How to send Submissions to Your MySQL Database Using PHP

  • Profile Image
    JotForm Support

    Answered by Charlie on January 13, 2015 at 09:09 AM


    I assume you have read the following tutorials:

    How To Post Submission Data To Thank You Page - This tutorial helps you understand the format of your POST data and will be easier for you to identify the correct names and pass the variable to the PHP script.

    How To Send Submissions To MySQL Database Using PHP - Lets you get started on how to past the variables using the format provided by the first tutorial, of course with your own form. 

    It would be easier for us to help you by providing us the PHP script or code that will fetch your POST data and pass it to your MySQL database. You can use http://pastebin.com/ to share your code with us. And please also do share the form that you are working on. We'll wait for your response.

    Thank you.