首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Vtiger Webform问题

Vtiger Webform问题
EN

Stack Overflow用户
提问于 2012-09-07 17:12:16
回答 1查看 543关注 0票数 0

我正在尝试在vtiger leads模块中存储数据。我可以通过file_get_contents()发送变量,但它不起作用。以下是我的代码

代码语言:javascript
复制
$moduleName = $_POST['moduleName']; 
$company    = $_POST['company']; 
$firstname  = $_POST['firstname'];
$lastname   = $_POST['lastname']; 
$website    = $_POST['website']; 
$phone      = $_POST['phone']; 
$email      = $_POST['email']; 
$city       = $_POST['city']; 
$state      = $_POST['state'];
$code       = $_POST['code']; 

$post = http_build_query(array(

"firstname" => "$firstname",
"lastname" => "$lastname",
"website"=>"$website",
"phone"=>"$phone",
"email"=>"$email",
"city"=>"$city",
"state"=>"$state",
"code"=>"$code",
 "moduleName" => "$moduleName",
   "company " => "$company",

));

 $context = stream_context_create(array("http"=>array(
 "method" => "POST",
 "header" => "Content-Type: application/x-www-form-urlencoded\r\n" .
             "Content-Length: ". strlen($post) . "\r\n",  
 "content" => $post,
))); 

$page = file_get_contents("http://vtiger.com/modules/Webforms/post.php", false, $context);

请帮帮我。

EN

回答 1

Stack Overflow用户

发布于 2013-01-08 14:50:33

正确使用web表单,在VTiger5.4中,您可以使用其界面轻松地创建web表单。oru用户vtiger webservices用于创建、编辑、删除数据

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12315125

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档