ask=sub&task=optin&hiddenlists=$lists_to_join&user[email]=$email&user[name]=$name";$MyForm->formrow->redirecturl = JURI::base()."index.php?option=com_acymailing>ask=sub&task=optin&hiddenlists=$lists_to_join&user[email]=$email_friend&user[name]=$name_friend"; ?> Thanks for your help!Marco."> Chronoform and Acymailing - Forums

Forums

Chronoform and Acymailing

mcevoli 07 Jun, 2011
Hello!

I've read http://www.acyba.com/en/support/documentation/107-acymailing-chronoform.html this tutorial and it worked. My problem is:
I have to send to acymailing two urls with, for example, myname and myemail and friend name and friend email fields.

I tried this code in after email code but it wasn't working.
 <?php     
// Set PHP variables for the submitted field values which have been passed via POST/URL     
$email = JRequest::getString('email', '', 'post');     
$name = JRequest::getString('name', '', 'post');
$email_friend = JRequest::getString('email_friend', '', 'post');     
$name_friend = JRequest::getString('name_friend', '', 'post');    
   
// Or you can manually choose the list by uncommenting the line below       
$list_to_join = 1;          
    
$MyForm->formrow->redirecturl = JURI::base()."index.php?option=com_acymailing>ask=sub&task=optin&hiddenlists=$lists_to_join&user[email]=$email&user[name]=$name";

$MyForm->formrow->redirecturl = JURI::base()."index.php?option=com_acymailing>ask=sub&task=optin&hiddenlists=$lists_to_join&user[email]=$email_friend&user[name]=$name_friend";       
?> 


Thanks for your help!
Marco.
GreyHead 07 Jun, 2011
Hi Marco,

You can't redirect the user to two different URLs at the same time.

I think you'll need to use the CURL plug-in to do one of these and a redirect to do the other. (Techically you could use CURL twicew but the plug-in doesn't support that so you need to hand-code one of them.)

If you search here I think that there are some recent posts on curl and acymail.

Bob
This topic is locked and no more replies can be posted.