Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP

Kevin Kenger
Kevin Kenger
32,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!

1 Answer

Grzegorz Doleczek
Grzegorz Doleczek
4,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.