會員登入 新使用者?立即註冊

這裡記錄了聿王爺的點點滴滴!

關閉
你好,歡迎參觀我的部落格! 我要留言

最新文章

分類: php
2008/11/29 13:04

<?php
//do quality checks on the incoming data here.

//then bundle the request and send it to Salesforce.com
$req  = "&lead_source=". urlencode($_REQUEST["leadSource"]);
$req .= "&first_name=" . urlencode($_REQUEST["firstName"]);
$req .= "&last_name=" . urlencode($_REQUEST["lastName"]);
$req .= "&title=" . urlencode($_REQUEST["title"]);
$req .= "&company=" . urlencode($_REQUEST["company"]);
$req .= "&email=" . urlencode($_REQUEST["email"]);
$req .= "&phone=" . urlencode($_REQUEST["phone"]);
$req .= "&street=" . urlencode($_REQUEST["street"]);
$req .= "&city=" . urlencode($_REQUEST["city"]);
$req .= "&state=" . urlencode($_REQUEST["state"]);
$req .= "&zip=" . urlencode($_REQUEST["zip"]);
$req .= "&debug=" . urlencode("0");
$req .= "&oid=" . urlencode("<Your Salesforce Org Id here>");
$req .= "&retURL=" . urlencode("<Your return url here>");
$req .= "&debugEmail=" . urlencode("<email for debugging>");

$header  = "POST /servlet/servlet.WebToLead?encoding=UTF-8 HTTP/1.0\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Host: www.salesforce.com\r\n";
$header .= "Content-Length: " . strlen($req) . "\r\n\r\n";
$fp = fsockopen ('www.salesforce.com', 80, $errno, $errstr, 30);
if (!$fp) {
echo "No connection made";
} else {
fputs ($fp, $header . $req);
while (!feof($fp)) {
$res = fgets ($fp, 1024);
echo $res;
}
}
fclose($fp);
?>

回應(0) 引用(0)
分類: javascript
2008/11/29 12:15

<script language=JavaScript>todomain=www.you.com;domain=location.href.replace("http://","").split("/")[0];if(todomain!=domain){ alert(" ...《 詳全文

回應(0) 引用(0)
分類: php
2008/11/29 11:59

只適用linux 編輯 .htaccess 加入下面語句  RewriteEngine onRewriteCond %{HTTP_REFERER} !^http://yourname.com/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://yourname.com$ [NC]Rew ...《 詳全文

回應(0) 引用(0)
分類: php
2008/11/29 11:53

如果有使用session_start();在擋頭,那表單不會留原來key過的這時只要在session_start(); 之前加入session_cache_limiter("private");或session_cache_limiter("public"); ...《 詳全文

回應(0) 引用(0)
分類: php
2008/11/29 11:50

UPDATE cdb_posts SET `message` = REPLACE(`message`,'<br>', '<br>\n') ; ...《 詳全文

回應(0) 引用(0)
分類: javascript
2008/11/29 11:45

<input name="idname" type="text"  id="idname" size="10"> if(document.activeElement.id   ==   "idname&qu ...《 詳全文

回應(0) 引用(0)
分類: javascript
2008/11/29 11:39

<select name="select" id="select" onchange="alert(this.selectedIndex);"><option value=""></option>  <option value= ...《 詳全文

回應(0) 引用(0)
分類: php
2008/11/29 11:31

<?PHP//將big5轉換成10進位$db=mysql_pconnect("localhost","root","8763");mysql_select_db("test");mysql_query("set names big5"); ...《 詳全文

回應(0) 引用(0)
分類: php
2008/11/29 11:13

$browser = new COM("InternetExplorer.Application");$handle = $browser->HWND;$browser->Visible = true;$browser->Fullscreen = true;$browser->Navigate("http ...《 詳全文

回應(0) 引用(0)
2008/11/29 11:12

特約記者薛怡青/綜合外電報導 【特約記者薛怡青/綜合外電報導】提供網站排名數據的Alexa網站(Alexa.com),成為許多網站查詢網路流量與網站在全球排名最主要的資源之一,不過,身為Alexa網站 ...《 詳全文

回應(0) 引用(0)

部落格聯播

1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30  

文章分類

最新回應

我的訂閱

統計資料

  • 今日人數:0
  • 累計人數:883
  • 發表文章:10
  • 相片數量:498
  • 回應數量:0

更新日期

2009/03/17 17:40

搜尋

雅虎資訊 版權所有 © 2009 Yahoo! Taiwan All Rights Reserved
「本服務設有管理員」 服務條款 隱私權政策