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.
Thanks for your help!
Marco.
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.