Forums

Submit URL can send email ?

kindheart 05 Oct, 2009
Hi !

I'm new chronoform user, I searched the forum but can't find answer 🙂
could I ask a question please.
I created a form to submit to a external URL. the question is, can it send data to my email before submit data to that external url !?

Many thanks !
Kindheart
GreyHead 05 Oct, 2009
Hi kindheart,

Yes. If you want to transfer the user to an external URL (like PayPal) then use the ReDirect Plugin; if you just want to send the data and keep the user on your site then use the CURL Plugin.

Bob
kindheart 05 Oct, 2009
Hi Bob !

I'm using 3.1 RC5.1 that's why the ReDirect Plugin isnt available in the form management. it's time to update.
Thanks for your quick respone 🙂
kindheart 06 Oct, 2009
hi Bob !

I managed to get the form run but I can't make the redirect using POST method, it always stays at GET in redirected url (variables always show at the address bar of the browser)

what can I do to make it POST

thanks
Kindheart
GreyHead 06 Oct, 2009
Hi kindheart,

You'll need to use the Curl plugin to do it by post I think, the ReDirect plugin only works with GET. I'm not sure if you can do a user transfer with Curl.

What are you actually trying to achieve here?

Bob
kindheart 06 Oct, 2009
Hi Bob !

Actually I want to send the data to email, and then POST the data send to external url (of course transfer user to that url too)
but I didnt know it only support GET 🙂
Well, sorry for my low knowlegde and English too
you guy are great, keep up your good work.

Kindheart
GreyHead 06 Oct, 2009
Hi kindheart,

From Googling around it looks as though this should be possible with cURL's CURLOPT_FOLLOWLOCATION but I haven't tried it.

Bob
kindheart 19 Oct, 2009
Hi !

I'm Sorry to trouble you again

I used the plugin and everything ok
but when I come back to the form page it display a (error) message like

"$_POST: Array ( [text_2] => [email]test@test.test[/email] [text_4] => [email]test@test.test[/email] [text_6] => [email]test@test.test[/email] [text_12] => [email]test@test.test[/email] [text_13] => [email]test@test.test[/email] [text_16] => [text_17] => [text_18] => [text_19] => [text_20] => "

I dont enable debug

I search arround but can't find a solution

anyone know how to fix it ?

thanks
GreyHead 19 Oct, 2009
Hi kindheart,

If I remember correctly this was a piece of debug code left in the plugin file - please unzip the attached file and copy it to the components/com_chroncontact/plugins folder.

Bob
kindheart 19 Oct, 2009
Hi Bob !

I use the redirect plugin, so I edited that plugin php, hide all message but still "$_POST: 1" display

I really dont know why please give your idea, thanks 😀
GreyHead 19 Oct, 2009
Hi kindheart,

Oops , sorry. Please comment out or remove line 249
// $mainframe->enqueuemessage('$_POST: '.print_r($_POST, false));

Bob
kindheart 19 Oct, 2009
Hi Bob !

Thanks, it works now !
also it's my bad too, I will be carefully next time 😀
This topic is locked and no more replies can be posted.