简体   繁体   English

如何创建注册表单,以及如何在FB应用程序中获取用户填写该表单的内容

[英]How can I create registration form and how can I get what the users filled in that form in my FB app

I have created one app in facebook (using facebook canvas). 我已经在Facebook中创建了一个应用程序(使用Facebook画布)。 It is working properly, but I want to know, how can I put a registration form with some fields??? 它工作正常,但是我想知道,如何在某些字段中填写注册表???

I have written the code for form, 我已经为表格编写了代码,

<form action="../form/fbform.php" method="post">
My Name
<input maxlength="50" name="name" type="text" value="" />
My Email 
<input maxlength="50" name="email" type="text" value="" />
I Work for
<input maxlength="50" name="cmpny" type="text" value="" />
My Friend
<input maxlength="50" name="frdname" type="text" value="" />
My Friend's Email
<input maxlength="50" name="frdemail" type="text" value="" />

<input name="try" type="submit" value="Submit" />
</form>

That is the code for my form, but after submission it showing blank page. 那是我表单的代码,但是提交后显示空白页。

In action I have written fbform.php, In that file, I have the written the sql code to insert these form details into my website database. 在实际操作中,我编写了fbform.php。在该文件中,我编写了sql代码以将这些表单详细信息插入我的网站数据库。 and also I have written redirect url to my app. 而且我已经将重定向网址写入了我的应用。 but it's not working. 但它不起作用。

How can put the registration form in my app and how can I get those details (what users filled in those fields) in my website database or some excel sheet?? 如何在我的应用程序中放置注册表格,以及如何在我的网站数据库或某些excel工作表中获取这些详细信息(用户填写了哪些字段)?

I think you need to see the fbml tags to post your data to your desired web page and try the GET method and use the session object of the facebook to retrieve your details . 我认为您需要查看fbml标记才能将数据发布到所需的网页,并尝试使用GET方法并使用facebook的session对象检索您的详细信息。

<form action="../form/fbform.php" method="POST">
<input type="text" name="test1"></input>
<input type="hidden" name="fb_sig_session_key" value=”<?php $_GET[‘fb_sig_session_key’]”></input>
<input type="hidden" name="user_id" value=”<?php $_GET[‘user_id’]”></input>
<input type="submit" name="Submit"/>
</form>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何让我的注册表单页面与 php 一起使用? - How can i get my registration form page to work with php? 如何从FOSUserBundle注册表单获取表单数据? - How can I get the form data from the FOSUserBundle registration form? 如何根据网站上填写的表单创建具有特定文件的自动回复电子邮件? - How can I create an auto respond to emails with specific files depending on the form filled in on my site? 我可以创建自定义 WordPress 注册表单吗? - Can I create a custom WordPress registration form? 如何避免用户将php代码输入到我的表单中 - How can I avoid users entering php code into my form 如何基于HTML表单字段中填充的信息从sql查询中检索特定信息? - How can I retrieve specific information from my sql query based on what information is filled in the HTML form fields? 如何在 Wordpress 的新用户注册表单中隐藏字段? - How can I hide fields in new user registration form in Wordpress? 我如何修改laravel 5.5的内置注册表格? - How i can modify the built in registration form of laravel 5.5? 如何将自定义字段添加到注册表单? WordPress的 - How can i add custom fields to registration form ? wordpress 如何使用 PHP 函数正确验证我的注册表单输入? - How can I properly validate my registration form inputs with PHP functions?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM