How to save a copy of submission data to MySQL database?

  • Profile Image
    Nick 
    Asked on September 09, 2015 at 07:12 PM

    Hello,

     

    I was wondering if upon submitting a form, there was a way to grab the data from the form submit it into a MySQL database as well as send an email. Thank you

  • Profile Image
    evren
    Answered on September 10, 2015 at 02:40 AM

    Hi there,

    Of course you can! Please read this guide: How to send Submissions to Your MySQL Database Using PHP

    http://www.jotform.com/help/126-Form-to-MySQL

    Please feel free to contact me if you have any questions.

    Thank  you

  • Profile Image
    Bintelli
    Answered on September 10, 2015 at 06:40 PM

    Hello and thank you for your response.


    I tried the method in the article but I cannot even get a print_r of the $_POST data. I tried doing it to a thank you page: http://citecardealers.com/RegistrationReceived.php and also tried to to the page the form resides on: http://citecardealers.com/RegTest.php. Neither got me the $_POST data. It just shows an empty array. 

     

     

  • Profile Image
    ashwin_d
    Answered on September 11, 2015 at 01:08 AM

    Hello Bintelli,

    I did check your form "citEcar Dealers - Warranty Registration" and found that your have not enabled the Send POST data preferences. Please check the screenshot below:

     

    Form should be configured to send the post data before you can read it in your thank you page. You may like to take a look at the following guide which should help you:

    http://www.jotform.com/help/51-How-to-Post-Submission-Data-to-Thank-You-Page 

    then take a look at the following guide:

    http://www.jotform.com/help/126-Form-to-MySQL

    Thank you!