Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJaco Burger
20,807 PointsSave form to external DB
Hi guys. I've got a tricky situation here. A client I'm doing a project for has TWO databases. One is the standard one for WP, the other one is an external DB, which is used to store previous form submissions (hardcoded forms). I either need a way to send info from WP forms to this DB, or I'll need to hardcode forms into a php template.
Any advice? I'm not sure how to do this.
1 Answer
Anthony Martinez
13,111 PointsHey. Could you write a function that posts to both DB's? You could clean and consume the content of the form, write it to one DB, and then write it to another. Just my $.02