Home > Backend Development > PHP Tutorial > POST的数据替空

POST的数据替空

WBOY
Release: 2016-06-13 12:57:09
Original
848 people have browsed it

POST的数据为空
下面是我想实现的:
用户点击编辑之后利用ajax调用一个新的界面,然后编辑完之后单击提交POST到后台操作

但是发现post之后都是空数据,是什么原因呢?该怎么解决呢?
下面是我的编辑页代码

<?php <br />
session_start();<br>
include("../conn/conn.php");<br>
include("../inc/func.php");<br>
$pw_id=$_GET['pw_id'];<br>
$sql="SELECT `pw_id`,`k1`,`k2`,`k3`,year,`student_num`,`week_time`,`has_exam`,paee_work_theory.`remark`,`co_tid`,`verify`,`weeks`,paee_course.name FROM `paee_work_theory`,paee_course WHERE paee_course.pc_id=paee_work_theory.pc_id and pw_id='$pw_id' order by paee_work_theory.pw_id desc";<br>
$record=mysql_query($sql,$conn);<br>
$row=mysql_fetch_array($record);	<br>
header('Content-type:text/html;charset=GBK');<br>
?><br>
			 
Copy after login

             ">
            

            

            
">

            
">

            
">

            
 
            
 
            
 
            

                
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template