<?phpinclude 'conn.inc.php';if(isset($_GET['action'])&&$_GET['action']=="add"){$name=$_POST['name'];if($name==""){echo"
if(isset($_GET['action']) && $_GET['action']=="add")
{
$name=$_POST['name'];
if ($name=="")
{
echo "";
echo "";
}
$address=$_POST['address'];
$property=$_POST['property'];
$number=$_POST['number'];
$sex=$_POST['sex'];
$salary=$_POST['salary'];
$period=$_POST['period'];
$experience=$_POST['experience'];
$education=$_POST['education'];
$language=$_POST['language'];
$position=$_POST['position'];
$requirement=$_POST['requirement'];
$sort=$_POST['sort'];
$update=$_POST['update'];
$release=$_POST['release'];
$sql="insert into ttq_join(name,address,property,number,sex,salary,period,experience,education,language,position,requirement,sort,update,release)
values('".$name."','".$address."','".$property."','".$number."','".$sex."','".$salary."','".$period."','".$experience."','".$education."','".$language."','".$position."','".$requirement."','".$sort."','".$update."','".$release."')";
if($mysqli->query($sql))
{
echo "";
echo "";
}
else
{
echo "";
echo "";
}
}
?>
和数据库的字段名进行比对也没有问题,自己已经重新写了3遍了,就是无法提交成功
展开