php - Send data to url in form handler -


i have salesforce form, sends form data salesforce_url. implementing form handler. how send data salesforce-url in form handler. in basic form sent via

<form action="salesforce-url" method="post" role="form"> 

now form handler have action set to:

<form action="/form-handler.php" method="post" role="form"> 

in form handler @ form-handler.php how can push data https://www.salesforce.com.

ps: using google captcha , auto populating form variables add complexity. below form-handler...

<?php      $email;$comment;$captcha;     if(isset($_post['email'])){       $email=$_post['email'];     }if(isset($_post['g-recaptcha-response'])){       $captcha=$_post['g-recaptcha-response'];     }     if(!$captcha){       echo '<h2>please check the captcha form.</h2>';       exit;     }     $response=file_get_contents("https://www.example.com/recaptcha/api/siteverify?secret=-ya-&response=".$captcha."&remoteip=".$_server['remote_addr']);     if($response.success==false)     {       echo '<h2>please no spam, thank you.</h2>';     }else     {       header("location: http://example.com/form-success/");     } 

?>

you can curl data remote db. http://davidwalsh.name/curl-post


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -