I Have a generic PHP Application Form which has around 20 fields(say First Name,Last name,Mobile,Position etc ) .I am integrating this form to create a record in salesforce.
How can i pass the values entered in the form to the PHP to create a record.
I am trying to create a record using Saleforce PHP tool kit.I have gone through the samples of the php code given by salesforce. But had no clue how to pass the parameters.
PHP Code to create the record in salesforce
<?php
$fields = array (`'First_Name__c' => 'Praveen','Last_Name__c' => 'Bonalu','Mobile__c' => '234-345-4567',);
$sObject = new SObject();
$sObject->fields = $fields;
$sObject->type = 'Candidate__c';
echo "**** Creating the following:\r\n";
$createResponse = $mySforceConnection->create(array($sObject));
print_r($createResponse);
?>
Php form:to capture the date entered by the user
FirstName: <input type="text" name="First name" value="<?php echo $name;?>">
Last Name: <input type="text" name="Last name" value="<?php echo $Name;?>">
Mobile: <input type="text" name="Mobile" value="<?php echo $Mobile;?>">
Thanks Praveen