leave the action as is to send the email, then add the following code to the page after the UE code block to send the information to the www.salesforce.com server using cURL
<?php
if (($_SERVER["REQUEST_METHOD"] == "POST")) {
$c = curl_init();
curl_setopt($c, CURLOPT_URL, "https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8");
curl_setopt($c, CURLOPT_TIMEOUT, 90);
curl_setopt($c, CURLOPT_POST, 1);
curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_POSTFIELDS, $_POST);
$result = curl_exec($c);
curl_close($c);
}
?>