PHP的图片超级连接 你的意思是无刷新提交数据?用AJAX吧 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 就是说点了图片怎么样可以转到这一段:else if($_POST['submit'] == "doinsert"){$query = "INSERT INTO news (title, author, date, content) VALUES ('".$_POST['title']."', '".$_POST['author']."', NOW(), '".$_POST['content']."')";echo $query;mysql_query($query);exit();}"doinsert"是个"submit"<td colspan="2" align="center"><input type="submit" name="submit" value="doinsert"></td> <form action='' method=post> <input type="submit" name="submit" value="doinsert"> <input type="image" src='img/images.gif'></form>然后就可以用 if($_POST['submit'] == "doinsert") { $query = "INSERT INTO news (title, author, date, content) VALUES ('".$_POST['title']."', '".$_POST['author']."', NOW(), '".$_POST['content']."')"; echo $query; mysql_query($query); exit(); } else if($_POST['submit'] == "doinsert") { $query = "INSERT INTO news (title, author, date, content) VALUES ('".$_POST['title']."', '".$_POST['author']."', NOW(), '".$_POST['content']."')"; echo $query; mysql_query($query); //用head("location:$_SERVER[pre]");/你查查这个变量跳回前一页} 关于80端口问题 php中读取mssql中nchar类型字段,显示有乱码 php多个问题 有关PHP调用WEBSERVICE的问题,在线等.... discuz代码,if(defined('NOROBOT') && IS_ROBOT)的问题 $pluginhooks[global_footerlink]这到底是怎么回事 php使用持续连接,Apache停止服务的时候会出现错误提示 没有 licence 用 zendenc.exe 编译的文件是不是有使用期限亚? 数据查询 php 救急!!!PHP读取数据的问题! mysql中NULL代表什么?
else if($_POST['submit'] == "doinsert")
{
$query = "INSERT INTO news (title, author, date, content) VALUES ('".$_POST['title']."', '".$_POST['author']."', NOW(), '".$_POST['content']."')";
echo $query;
mysql_query($query);exit();
}"doinsert"是个"submit"
<td colspan="2" align="center"><input type="submit" name="submit" value="doinsert"></td>
<input type="submit" name="submit" value="doinsert">
<input type="image" src='img/images.gif'>
</form>
然后就可以用 if($_POST['submit'] == "doinsert")
{
$query = "INSERT INTO news (title, author, date, content) VALUES ('".$_POST['title']."', '".$_POST['author']."', NOW(), '".$_POST['content']."')";
echo $query;
mysql_query($query); exit();
}
{
$query = "INSERT INTO news (title, author, date, content) VALUES ('".$_POST['title']."', '".$_POST['author']."', NOW(), '".$_POST['content']."')";
echo $query;
mysql_query($query); //用head("location:$_SERVER[pre]");/你查查这个变量跳回前一页
}