Welcome to the Treehouse Community
Looking to learn something new?
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.