How can I capture user information from forms submitted from within WP member areas?

  • Profile Image
    Asked on October 11, 2017 at 01:13 PM


    I have built a simple form for our recurring customers, which I want to integrate on my WP based website. Those customers order lunch service for their staff every every day of every week. They order every Thursday for every day of the week following and can choose from a variety of meals, so every week is different. They have access to a membership area on our website where they can place their orders by filling out and submitting the form. The form is not visible for non-members.

    I need a way of capturing the user information in the form so I can link the order with the customer. Putting a separate question in asking for their company name does not work, because they are already uniquely signed in on the Wordpress site.

    How can I make that to work?

  • Profile Image
    Answered on October 11, 2017 at 02:20 PM

    Gathering data outside of the form is not possible like capturing the login/username of the customer who are logged in thru wordpress . So you may still need to let them enter their name.

    Then you get the data submission and save it on your wordpress mysql database using this guide