1
我有一個salesforce表單,它將表單數據發送到salesforce_url。我正在實現一個表單處理程序。如何在表單處理程序中將數據發送到salesforce-url。在外形handler.php發送數據到表單處理程序中的網址
<form action="/form-handler.php" method="POST" role="form">
在我的表單處理我怎麼能推:在基本形式,它通過將
<form action="salesforce-url" method="POST" role="form">
與表單處理程序我已經行動中設定將發送現在數據到https://www.salesforce.com。
PS:使用谷歌驗證碼,將自動填充某些表單變量以增加複雜性。下面是我的表格處理程序...
<?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 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/");
}
?>