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 trial
Kevin Kenger32,834 Points
ColdFusion and PHP actions from a single form
The company I work for has a landing page where users can fill out a form. The form's action sends the data to a ColdFusion page. I don't have the first clue when it comes to ColdFusion, and I need to access that data to send to another database, while keeping the code that sends it to the current database.
Honestly, I have no idea how to go about this. I don't want to try to rewrite the code in PHP and mess everything up, and I've been reading that there are ways to send the data to work with PHP using
cfhttp, but anything ColdFusion goes right over my head.
I'm just wondering if someone can help me out, maybe just point me in the right direction. Seriously any help would be so greatly appreciated!
Grzegorz Doleczek4,815 Points
Don't know if there is "one correct answer" to your question. But I would:
1) Edit landing page to send data to PHP app you wrote. 2) Add some aditional code to send form data through HTTP to CF app. You can use some cURL wrapper libraries to ease pain.
This solution is fragile, but if you cant touch CF app is best one that came to my mind.