Knowledge Base/Support & Answers

ColdFusion Integration

Tiago Soromenho
posted this on September 15, 2009 07:35 am

QUESTION:

I have a client who is interested in using your services. His site though is hosted on a ColdFusion server. I've had a look at the QuickEnroll option 2 but it requires PHP. Is  this a regular post operation to your server? Do you see any reason I can't  utilize a regular form post operation to your server as long as I structure form data correctly? Our hosting account does not offer PHP so that is not an option.

Being that I am not particularly familiar with PHP, are there any special PHP operations taking place in the register.php file which would prevent me from using ColdFusion?

Any information that you can provide would be helpful.

Thank you

 

ANSWER:

You are correct that PHP is not required. Because it is the most prevalent cross-platform programming language for the web and most servers, no matter what flavor, come installed with it, it made sense to give the directions in PHP. However, as you pointed out, all it does is receive the form data and create a background form POST query to our server. This should be fairly easily done with(in) a ColdFusion environment, as long as it has the ability to send out for an external data request (like a cURL request).

The basic flow is as follows:
- A page has the form elements for a customer to give their information.
- This page is submitted to a script (in your case, ColdFusion) that takes the form elements and submits them to our server in the proper format with the desired options (for example, award "sign-up bonus" points)
- With the current version of StickyStreet (soon to change, date not yet set) the server returns a fully formatted, logged-in page, which needs to be ignored (and thus not displayed) by the calling script. (The new version will have a fully REST-based API that will return an XML-formatted success message or error code.

Let me know if you need more information or help implementing it. I would also love to post on this support site the result (code) of your ColdFusion integration inorder to help out anyone else in the same situation (with proper credit, of course!)