有一个页面是显示页面(index.php),别一窗口有一页面是添加内容页面(add.php),现在我添加内容保存到数据库中后通过什么代码能让index.php页面刷新,add.php页面关闭。高手指点一下。
解决方案 »
- section循环数组的问题,大家来帮忙啊。
- 上传到文件夹里的图片怎么显示在网页上啊?
- 求onmouseover innerHTML代码修正
- php中设置include_path跟apache中设置include_path有什么区别
- 请问一个问题?
- 请教高手一个问题,看一下为啥子。
- SQL error: [Microsoft][ODBC Visual FoxPro Driver]Operator/operand type mismatch.
- 100分,请问谁能帮忙看看这个php论坛,似乎中木马了了
- 还有一个问题,一定要看呀?
- PHP:南京地区的程序员,组织一个沙龙怎么样?
- php除了变量区分大小写,还有哪些地方区分大小写呢?
- php写txt文件,怎么写到父目录下的一个文件夹里
也可以:echo '<script>location.href="index.php";</script>';这个就不会有以上问题了
..................
<html>
<head>
<title> 无标题文档 </title>
<meta http-equiv= "Content-Type " content= "text/html; charset=utf-8 ">
<script language="javascript">
function openwin()
{
new_win = window.open('add.php','', 'height=300, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no');
}
function closewin()
{
window.opener = "meizz"; //IE5.5+
window.location.href = window.location.href;
new_win.close();
}
</script>
<input name="" type="button" onClick="closewin();" value="关闭add并刷新index">
<input name="" type="button" onClick="openwin();" value="打开add页面">
</body>
</html>
add.php
................