Search code examples
phpsqlwordpresscrudbuddypress

Storing form information from Wordpress to a database


I have a website where people sign up and input information about their athletic profile (bench press, hand size etc...). I also have a database connected to the wordpress website through Cpanel / PHPmyadmin and I want to store the information that the user submits via forms into that database.

I have the buddypress plugin installed and using buddypress the users sign up but from this point I am unsure where to go.

So basically the user enters their information and registers on the website using a buddypress form and with that information I want to store that data into my database. How can I do this?


Solution

  • Wordpress / Buddypress is a database driven application. All the information that persists in Wordpress is in the database.

    The specific feature you're looking for are xProfile fields. This article explains how to add them (No programming required), while this one explains how to display that data (Programming required).