function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
eliteeserviceseliteeservices 

simple php post pass through info

I have a problem which I think should have a simple solution, but I am new to salesforce. 

fields in a php web form, to create a new sales force lead.

Form is created I would like to be able to add the code to exising form and just pass through the info to salesforce.

any ideas?


Park Walker (TAGL)Park Walker (TAGL)
Your best bet will probably be to generate the web-to-lead HTML for your organization and merge that into your existing form.

You will need to change the names on the input tags to match the Salesforce fields that you want to capture. Add the hidden fields containing your organization id, the return url and the debug flag to your form. Change the action on your form to the one shown in the web-to-lead HTML. Be sure to change the value of the debug field once you've finished testing.