[英]How to insert multiple leads at once through webforms in vtiger crm?
我有一個網絡表單,可將線索輸入vtiger crm 。 該網絡表單如下:
<form name="Test" action="http://localhost:8888/modules/Webforms/capture.php" method="post" accept-charset="utf-8">
<p>
<input type="hidden" name="publicid" value="9227539ebf714c64888c6f8a26b4c1f9"></input>
<input type="hidden" name="name" value="Test"></input>
</p>
<p>
<label>First Name</label>
<input type="text" value="" name="firstname" required="true"></input>
</p>
<p>
<label>Last Name</label>
<input type="text" value="" name="lastname" required="true"></input>
</p>
<p>
<label>Company</label>
<input type="text" value="" name="company" required="true"></input>
</p>
<p>
<label>Country</label>
<input type="text" value="" name="country" required="true"></input>
</p>
<p>
<input type="submit" value="Submit" ></input>
</p>
此表在將潛在客戶插入我的CRM時絕對有效。 但是,現在我想使用這樣的網絡表單添加/插入多個潛在客戶:
<form name="Test" action="http://localhost:8888/modules/Webforms/capture.php" method="post" accept-charset="utf-8">
<p>
<input type="hidden" name="publicid" value="9227539ebf714c64888c6f8a26b4c1f9"></input>
<input type="hidden" name="name" value="Test"></input>
</p>
<p>
<label>First Name</label>
<input type="text" value="" name="firstname[]" required="true"></input>
</p>
<p>
<label>Last Name</label>
<input type="text" value="" name="lastname[]" required="true"></input>
</p>
<p>
<label>Company</label>
<input type="text" value="" name="company[]" required="true"></input>
</p>
<p>
<label>Country</label>
<input type="text" value="" name="country[]" required="true"></input>
</p>
<p>
<label>First Name</label>
<input type="text" value="" name="firstname[]" required="true"></input>
</p>
<p>
<label>Last Name</label>
<input type="text" value="" name="lastname[]" required="true"></input>
</p>
<p>
<label>Company</label>
<input type="text" value="" name="company[]" required="true"></input>
</p>
<p>
<label>Country</label>
<input type="text" value="" name="country[]" required="true"></input>
</p>
<p>
<input type="submit" value="Submit" ></input>
</p>
我試圖以此形式將兩個潛在客戶記錄添加到CRM中。 但這是行不通的。 相反,它僅將一條記錄輸入到CRM中,就像這樣abc | ## | pqr,其中“ abc”和“ pqr”分別是名字字段條目。
我是vTiger crm的新手。 請幫助我,並向我推薦一些優秀的開發人員指南。 非常感謝。
您一次只能插入一個線索。 capture.php中的PHP代碼不准備遍歷數組表單字段。 您必須進行多個請求才能輸入盡可能多的線索。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.