Forums

Moving Data from a form on a Page.php to WordPress's database (2 posts)

  1. justinbyrne001
    Member
    Posted 1 year ago #

    I've been pounding my head against the wall on this one and I can't seem to find a solution. The concept is easy enough I just don't quite understand how to do it. Here's what I'm trying to do. I have a <form> embedded within one the pages of one of my WordPress web-sites. Here's what the code looks like:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    If you also want to look at the page you can see it here: greenZpages

    Now here's what I'm trying to do. I have 8 fields that I need to be able to capture the data and migrate it over to a special table that I created within the WordPress database. I've already created the table and assigned all of the necessary attributes that each field requires. I just need to figure out how to take the data once it's inputed within the <form> on the lead-capture-form page and inject that data into a specified table within the word press database.

    So I need it to work like this

    (<form>) ----------> (<Custom_Table> in <WordPress_DB>)

    | value 01 | A | ----------> | field 01 | A |
    | value 02 | B | ----------> | field 02 | B |
    | value 03 | C | ----------> | field 03 | C |
    | value 04 | D | ----------> | field 04 | D |
    | value 05 | E | ----------> | field 05 | E |
    | value 06 | F | ----------> | field 06 | F |
    | value 07 | G | ----------> | field 07 | G |
    | value 08 | H | ----------> | field 08 | H |

    From there I can manipulate the data however I choose. I just can't figure out how to get it over there. I'm obviously new at this so please understand that. Any help would surely be appreciated. Thanks!

  2. justinbyrne001
    Member
    Posted 1 year ago #

    It's been 18 hours since this post. Could somebody "please" help me out with this. I understand that I "could" possibly get a plugin that could do something similar to this but I want to figure it out without having to use one for my own personal reasons. Can anybody point me in the right direction, please?

Topic Closed

This topic has been closed to new replies.

About this Topic