Forums

Send POST data with email ??

azeazeaze 13 Sep, 2012
Hello,

I m using chronoforms 4.0 RC3.5 and I have to send fields with POST method to an URL and send an email in the same time. The actions email + redirect url + redirect user works very well in On Submit events. BUT redirect url send fields data only in GET method !

So, how to in POST method ?

I ve found no answer anywhere.

Thanks
GreyHead 14 Sep, 2012
Hi azeazeaze,

The cURL action will let you send data using POST.

Bob
azeazeaze 14 Sep, 2012
Hi GreyHead,

Thanks for the tips !

But I can't check my values on my external page.
If i use only curl, i stay on the form page
If i use curl + redirect user blank, i see a blank page
If i use curl + redirect user with my url, i don't see the values in my page

How can i see them on my target url ?

Thank you
GreyHead 14 Sep, 2012
Hi azeazeaze,

Do you need to send the user *and* the data using POST?

That's tricky but possible, please see this FAQ.

Bob
azeazeaze 15 Sep, 2012
That's it !
Thank you very much
azeazeaze 17 Sep, 2012
Hello !

Finally, I don't have to send the user, only the data.

But curl seems to not work..
I have a test PHP page witch uses POST data and send it directly by mail. If I open this page directly in my web browser, it sends me a blank mail..
When I validate the form with my curl action, I don't receive any mail. So I suppose the target URL is not called (?).

Is there something I haven't understood ?

Thanks
GreyHead 18 Sep, 2012
Hi azeazeaze,

Time to turn the debuggers on to see what is happening. You can drag a Debugger action into the On Submit event and turn on Debug in the cURL action.

Bob
azeazeaze 18 Sep, 2012
Fore sure,
The Curl module must be installed on the server :wink:
Thanks.
This topic is locked and no more replies can be posted.