Like you see under here, the value its in the code. But I want to create a .html page with textboxes. When one user type in a name, the information will be sent to this script under here.. Is this possible? Like when I type "Mac" in a test.html the name "Mac" will be sent to array('name'=>'first_name','value'=>'Mac'),
Code:
<?php
// add nusoap library
require_once('lib/nusoap.php');
// create a soap client
$client = new nusoap_client('http://nettside.org/sugar/soap.php?wsdl','wsdl','','','','');
// Login
$user_auth = array(
'user_auth' => array(
'user_name' => 'admin',
'password' => md5('adminpassord'),
'version' => '0.1'),
'application_name' => 'SugarCrm'
);
$result = $client->call('login',$user_auth);
// output the session id
echo '<h2>Session Id:</h2>';
print($result['id']);
// Now Prepare a Contact
$set_entry_params = array(
'session' => $result['id'],
'module_name' => 'Contacts',
'name_value_list'=>array(
array('name'=>'first_name','value'=>'Ola'),
array('name'=>'last_name','value'=>'Norman'),
array('name'=>'email1','value'=>'konge@norge.com'),
array('name'=>'lead_source','value'=>'http://www.kongen.com'),
array('name'=>'phone_work', 'value'=>'22445566'),
array('name'=>'account_name','value'=>'Okei')
)
);
// Now Add the Contact
$result2 = $client->call('set_entry',$set_entry_params);
// Show the result
echo '<h2>Add Dump:</h2>';
print_r($result2);
?>
Bookmarks