我有一个页面,我在其中获取 ques id 并将其插入数据库中,因为我正在做
网址:*/faq/faq_question_sol.php?ques=62*
此 ( $selected_ques= ($_GET['ques']);
) 在 *faq_question_sol.php* 中正常工作,但 *answer_submit_process.php* 无法识别我的表单
<form id="post-form" class="post-form" method="POST" action="answer_submit_process.php">
<input id="submit-button" type="submit" tabindex="120" name="submitbutton" value="Post Your Answer" />
</form>
而 *answer_submit_process.php* 是
if(isset($_POST['submitbutton'])){
$userid = $_SESSION['userid']; // i have already started the session
$selected_ques= ($_GET['ques']);
$content = $_POST["content"] ;
$query="INSERT INTO `formanswer`( `user_id`,`questionid`,`content` ) VALUES ('{$userid}','{$selected_ques}','{$my_html}' ) ";
$result=mysql_query($query);
}