Basically I need to have my form when submitted send an email via my php file and then send the data again to salesforce via web to lead.
basically I just need my form to run these two actions.
<form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">
<input type=hidden name="oid" value="*****">
&
<form action="/sendRequest.php" method="POST" role="form">
what is the best method to do this, I have heard AJAX but I am a noob.