In the example below I am only showing the basic process. I am leaving out the validation code for the fields and any submission code to MySQL database. One security advantage of this process is hiding your organisation id within a variable in the submission page rather than on the live page with the form. // SF Org Id. $oid = "0113543434646"; I first check if cURL is enabled before processing...
Salesforce form integration (web-to-lead) with PHP and cURL
S