Php Facebook页面选项卡应用程序$\u未设置发布值

Php Facebook页面选项卡应用程序$\u未设置发布值,php,facebook,facebook-apps,Php,Facebook,Facebook Apps,我有一个facebook应用程序,它由一个表单组成,我想将这些值存储在我的数据库中。 我的form方法是POST,但在action方法中,我无法获取以我使用的表单发送的任何数据。下表: <form enctype="application/x-www-form-urlencoded" action="take_test.php" method="POST"> <table> <tr> <td style = "padding-top: 50

我有一个facebook应用程序,它由一个表单组成,我想将这些值存储在我的数据库中。 我的form方法是POST,但在action方法中,我无法获取以我使用的表单发送的任何数据。下表:

   <form enctype="application/x-www-form-urlencoded" action="take_test.php" method="POST">    
<table>
<tr>
<td style = "padding-top: 50px; padding-left: 44px; font-size: 13px; color: #50729F;" >          <span style = "font-weight:bold;"> some question?</span>  <br>

 <fieldset class='radios'>
 <label class='label_radio' for="radio-01"><input id="radio-01" type="radio" name='q1' value='1'> some answer</label>
 <label class='label_radio' for="radio-02"><input id="radio-02" type="radio" name='q1' value='2'> some answer 2</label>
 <label class='label_radio' for="radio-03"><input id="radio-02" type="radio" name='q1' value='3'> some answer3 </label>
 </fieldset>
 </td>
但它表示,指数“q1”没有定义,因此没有设置$b。 通过facebook页面标签中的帖子发送数据有什么特殊方法吗


谢谢

正如DMCS所提到的,您有两个具有相同ID属性的输入元素

 <label class='label_radio' for="radio-02"><input id="radio-02" type="radio" name='q1' value='2'> some answer 2</label>
 <label class='label_radio' for="radio-03"><input id="radio-02" type="radio" name='q1' value='3'> some answer3 </label>
一些答案2
一些答案3

此外,第三个单选按钮标签是“for”一个不存在的ID。Facebook可能有严格的HTML规则,这会阻止表单在出现此类错误时正常工作。

正如DMCS所述,您有两个具有相同ID属性的输入元素

 <label class='label_radio' for="radio-02"><input id="radio-02" type="radio" name='q1' value='2'> some answer 2</label>
 <label class='label_radio' for="radio-03"><input id="radio-02" type="radio" name='q1' value='3'> some answer3 </label>
一些答案2
一些答案3

此外,第三个单选按钮标签是“代表”一个不存在的ID。Facebook可能有严格的HTML规则,防止表单在出现此类错误时正常工作。

提交表单时是否选择了其中一个单选按钮?我不100%确定,因为我不记得曾经使用过单选按钮(首选下拉菜单)但可能是因为它们都有相同的名称?不,它们是一组收音机,这就是它们有相同名称的原因您有两个
input id=“radio-02”
谢谢DMC。仍然没有解决问题您在提交表单时选择了其中一个单选按钮吗?我不是100%确定,因为我不记得使用过单选按钮(首选下拉菜单),但可能是因为它们都有相同的名称?不,它们是一组收音机,这就是为什么它们有相同的名称您有两个
input id=“radio-02”
谢谢DMCS。仍然没有解决这个问题
 <label class='label_radio' for="radio-02"><input id="radio-02" type="radio" name='q1' value='2'> some answer 2</label>
 <label class='label_radio' for="radio-03"><input id="radio-02" type="radio" name='q1' value='3'> some answer3 </label>