Submit Form Data to database
-
I apologize for asking such a basic question, but I am not sure that I am even on a correct path. I want to create an HTML form to update values in a wp database. I have successfully created a wp database using phpmyadmin. I can access that database and use it’s data to place default values in an HTML form, but I do not understand how I can make the HTML form send those values to an external function. I want to pass the array of variables from the form to a function within a .php file that will execute $wpdb to update the database row information. From what I have seen and read, the action parameter of a form defines a page where the form data is sent as a long string of value pairs. I don’t understand how that can be of any use for what I would like to do.
What am I missing? I would have thought this type of action would be pretty straightforward process using $wpdb. As I said, I think I may be taking a wrong approach.
Thanks for any help that you can provide.
- The topic ‘Submit Form Data to database’ is closed to new replies.