JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
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.
Unable To Pass POST Data From Form and Insert To MySQL Database Using PHP scriptAsked 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
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.