Forums

How to post data to external cfm that receives variables?

ianwork 15 Feb, 2010
Hi there. I had set up a Chrono form that sends email fine and redirects to a 'thank you' page on Joomla.

But now the client wants the data also sent to an external webpage that is all set up to accept the field variables.

Where would I put this url in Chronoforms so it continues to work as normal, but now also sends data to this page (url changed to protect client):
https://www.sample.com/occupations/professionals-requested.cfm

I thought by just adding it as an action to the form tag would work, but it didn't redirect to 'thank you' page or send the email version so I removed that.

In Chrono forms there is a place that says can add 'well formatted PHP code to be executed just when form is submitted but AFTER Mail is sent'.
I think this might be the way to do it, but not sure how to write that? Can you explain or supply a php example.

Thanks for your time, kind regards, Ian
nml375 15 Feb, 2010
Hi Ian,
The simplest approach would probably be the Curl ChronoForms plugin. This should let your normal form data processing work as normal, while using curl to send the data to the second URL in the background.

/Fredrik
ianwork 15 Feb, 2010
thanks Fredrik for your fast reply. That sounds like it might work. Where do I get this plugin from?
I don't see it under my subscriptions tab?

Also, when I find it, how does it get installed in Joomla?
nml375 15 Feb, 2010
Hi Ian,
It's not a Joomla-plugin, but a ChronoForms plugin. It is included with recent versions of ChronoForms - you should be able to see it as a link to the left in the main Forms Management page. Check the box next to your form, and click the "Curl" link, and you should be taken to the Curl plugin configuration. Once you've set everything up here, save and edit your form, open the Plugins tab, and enable the curl plugin (should be a green bar with a red cross on it once the plugin is enabled). Once saved, your form should now send data to the other webpage in the background.

/Fredrik
ianwork 15 Feb, 2010
Ok, thank you🙂

I have an older version, so will upgrade. Is this simply a matter of uninstalling component, plugin, etc or is it a bit more than that?
Is there a page on how to upgrade?
nml375 15 Feb, 2010
Hi Ian,
Well, that would depend from which version you are upgrading.
As I recall, upgrading from one 3.1RC to another should be pretty much flawless. Even so, don't forget the mantra "Always backup first!".
If you are upgrading from 3.0 Stable, please see this post by Bob: http://chronoengine.com/forums.html?cont=posts&p=44184#p44184

Be adviced, that if you are using "advanced" forms with php-code, you'll probably have to check/update any code that makes use of ChronoForm (such as the FAQ#31 "Select email recipient from dropdown"). So might be a good idea to convert the forms on a non-production site first - in case something breaks.

/Fredrik
ianwork 15 Feb, 2010
Thanks again. I'm using 3.1 RC2, and it a html form with some validation, but will make copies of it before uninstalling and upgrading.
Kind regards, Ian
This topic is locked and no more replies can be posted.