[J2.5 - CF4 - Curl [GH] and CURL doesn't work in Acymailing
i try to make a subscribtion to Acymailing
with chronoform and use curl and curl[gh]... but doesn't work...
this is the tutorial :
http://www.acyba.com/en/support/documentation/106-acymailing-subscription-url.html
i make a custom event and write this code:
that's work!
WHY? There is a bug in CURL?
i try to make a subscribtion to Acymailing
with chronoform and use curl and curl[gh]... but doesn't work...
this is the tutorial :
http://www.acyba.com/en/support/documentation/106-acymailing-subscription-url.html
i make a custom event and write this code:
<?php
$session =& JFactory::getSession();
$_chronoform_data_mydata = $session->get( '_chronoform_data_anagrafica_privato', 'empty' );
if ( !isset($_chronoform_data_mydata['nomeReferente'])){
JError::raiseWarning( 003 ,'Dati di sessione mancanti' );
}
else
{
$data="option=com_acymailing&ctrl=sub&task=optin&hiddenlists=2&user[name]=".$_chronoform_data_mydata['nomeReferente']."&user[email]=".$_chronoform_data_mydata['emailReferente'];
$ch = curl_init('http://www.mysite.com/index.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch); //This is the result from Textlocal
curl_close($ch);
}
?>
that's work!
WHY? There is a bug in CURL?
This topic is locked and no more replies can be posted.
