Unable To Pass POST Data From Form and Insert To MySQL

  • Profile Image
    Asked 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
    Answered 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.