Hello,
Is the first time that i work with sugarCRM.. i need to register from a form 2 fields directly into sugarcrm.. this is my php code ..
‘http://URL/sugarcrm/soap.php’,
“uri” => ‘http://www.sugarcrm.com/sugarcrm’,
“trace” => 1
);
//user authentication array
$user_auth = array(
“user_name” => ‘user’,
“password” => MD5(‘pass’),
“version” => ‘.01′
);
// connect to soap server
$client = new SoapClient(NULL, $options);
// Login to SugarCRM
$response = $client->login($user_auth,’test’);
$session_id = $response->id;
$user_id = $client->get_user_id($session_id);
$response = $client->set_entry($session_id, ‘Targets’, array(
array(“name” => ‘last_name’,”value” => ‘$_POST[nome]’),
array(“name” => ’email1′,”value” => ‘$_POST[email]’),
array(“name” => ‘assigned_user_id’,”value” => $user_id)
));
var_dump($response);
?>
After clicking SUBMIT, i receive an error “INTERNAL SERVER ERROR”. My sugarCRM is on a virtual machine (bitnami/ ubuntu 10.10).
Best regards,
Cosmin