Curl between Chronoforms

GreyHead 02 Aug, 2012
Hi Clovis,

What are you actually trying to do here? Do you want to pass the user to the other form?

If you do then there are form actions like Show Form that will do that.

If not, then you probably need to create a new event in the second form to handle the data passed by cURL.

Bob

There's more in this paid tutorial.
clovismmbr 02 Aug, 2012
Thank you GreyHead, you light me up the ideas.
i used the code
<input value="<?php echo $_POST['txt_nome']; ?>" id="txt_nome" name="txt_nome" type="hidden" />

<input value="<?php echo $_POST['txt_email']; ?>" id="txt_email" name="txt_email" type="hidden" />

<input  value="<?php echo $_POST['txt_cpf']; ?>" id="txt_cpf" name="txt_cpf" type="hidden" />


To handle the CURL data and works like a charm.

You are welcome to drink a beer here in Brazil.

Clovis Rolemberg
GreyHead 02 Aug, 2012
Hi Clovis,

Great, well done!

You may find that this is enough as the Republisher in the Show HTML action will add any values it finds.
<input value="" id="txt_nome" name="txt_nome" type="hidden" />
<input value="" id="txt_email" name="txt_email" type="hidden" />
<input  value="" id="txt_cpf" name="txt_cpf" type="hidden" />


Bob
clovismmbr 03 Aug, 2012
Hi GreyHead
I having a problem:

When i use CURL debug set to yes the show me the CURL respone of form whitepaper working fine. But when i set to off its not working(i guess).

The flow is

1 - on the form:
http://www.hdibrasil.com.br/roadshow/index.php?option=com_chronocontact&chronoformname=roadshow_RJ_download

I fill the fields then i submit, wich send emails, save on database ,execute curl plugin and redirects to the whitepaper form in: http://www.hdibrasil.com.br/roadshow/index.php?option=com_chronocontact&chronoformname=whitepaper

But in whitepaper form is no getting the posted data
below is the code of whitepaper form

<input value="<?php echo $_POST['txt_cpf']; ?>" id="txt_cpf" name="txt_cpf" type="hidden" />
<input value="<?php echo $_POST['txt_nome']; ?>" id="txt_nome" name="txt_nome" type="hidden" />
<input value="<?php echo $_POST['txt_sobrenome']; ?>" id="txt_sobrenome" name="txt_sobrenome" type="hidden" />
<input value="<?php echo $_POST['txt_email']; ?>" id="txt_email" name="txt_email" type="hidden" />
<input value="<?php echo $_POST['txt_telefone']; ?>" id="txt_telefone" name="txt_telefone" type="hidden" />
<input value="<?php echo $_POST['txt_empresa']; ?>" id="txt_empresa" name="txt_empresa" type="hidden" />
<input value="<?php echo $_POST['txt_cargo']; ?>" id="txt_cargo" name="txt_cargo" type="hidden" />
<input value="<?php echo $_POST['txt_cidade']; ?>" id="txt_cidade" name="txt_cidade" type="hidden" />
<input value="<?php echo $_POST['txt_estado']; ?>" id="txt_estado" name="txt_estado" type="hidden" />

<p>Obrigado <?php echo $_POST['txt_nome']; ?> <?php echo $_POST['txt_sobrenome']; ?>, a sua inscrição realizada com sucesso! Contamos com a sua participação no dia {txt_dataevento}, em {txt_cidadeevento}.</p>
<p>Um abraço, Equipe HDI</p>
<p>falecom@hdibrasil.com.br :: [11] 3071 0906 :: www.hdibrasil.com.br</p>
<hr />
<div class="form_item">
  <div class="form_element cf_button">
    <input value="Download agora" name="button_3" type="submit" /> | <input name="cancela" type="button" id="cancela" onClick="NewPage()" value="Não Obrigado" />
  </div>
  <div class="cfclear"> </div>
</div>


Please tell me what i am doing wrong.
Another Question: The CURL plugin works in unlicensed version?

Thanks
Clovis Rolemberg
GreyHead 04 Aug, 2012
Hi Clovis,

You can't send data to a form using cURL and then send the User with a ReDirect - they don't get to see the same version of the form.

Either add the data to the ReDirect URL or better, save the data to the session using the 'Data to Session' redirect with the Show Form action and reload the data with the 'Session to Data' action.

Bob
clovismmbr 07 Aug, 2012
Hi GreyHead,
Where i find " Republisher in the Show HTML action "where is the Show HTML action?
please could you post a example how to do this?
i was searching on google some php tutorials but i getting confusing

I cant see the the show form action.
I use v3 version of chronoforms

Thank you
clovis Rolemberg
GreyHead 11 Aug, 2012
Answer
Hi Clovis,

Sorry, my reply was mostly about CFv4 :-(

There's a Try to Republish button on the form General tab that will re-load data and you can go from one form to another by putting the URL of the second form into the On Submit URL box of the first form (also on the General tab).

Bob
clovismmbr 12 Feb, 2014
Now im using v4 and your answers is too useful to me. thanks again
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger