Javascript/PHP弹出页面问题

Javascript/PHP弹出页面问题,javascript,Javascript,我有一个PHP程序,允许用户弹出一条消息,供用户确认。如下所示是我使用的链接 从inbox.php: echo "<a href='inbox.php' onclick=\"popup('acknowledge.php?id=$id')\"><font size=1px color=maroon>acknowledge</font></a></td>"; if ($_POST['no']) { header("locatio

我有一个PHP程序,允许用户弹出一条消息,供用户确认。如下所示是我使用的链接

从inbox.php:

echo "<a href='inbox.php' onclick=\"popup('acknowledge.php?id=$id')\"><font size=1px color=maroon>acknowledge</font></a></td>";
if ($_POST['no']) {

    header("location: inbox.php");
    }

?>

<body bgcolor=skyblue>
<center><form name=form1 method=post>
<b><u> Acknowledge Message </u></b><br><br>
Are you sure yout want to acknowledge this message?<br><br>
<input type=button name=yes value="Yes">
&nbsp;
<input type=submit name="no" value="No">
</form>
</center>
</body>
echo”“;
acknowledge.php

echo "<a href='inbox.php' onclick=\"popup('acknowledge.php?id=$id')\"><font size=1px color=maroon>acknowledge</font></a></td>";
if ($_POST['no']) {

    header("location: inbox.php");
    }

?>

<body bgcolor=skyblue>
<center><form name=form1 method=post>
<b><u> Acknowledge Message </u></b><br><br>
Are you sure yout want to acknowledge this message?<br><br>
<input type=button name=yes value="Yes">
&nbsp;
<input type=submit name="no" value="No">
</form>
</center>
</body>
if($\u POST['no'])){
标题(“位置:inbox.php”);
}
?>
确认消息

您确定要确认此消息吗?

问题是,每次我单击“否”,都会从上一页返回。它将页面大小设置为与弹出页面相同。它也变小了。有什么问题吗?非常感谢您的回答

以下是popup()的代码:



这不是因为您正在将url设置为新的win而不是当前窗口吗?

名为
popup
的函数的代码是什么?您好,我为popup设置了代码。希望你能帮我解决这个问题。:)对不起,我不太明白你的意思?popup()函数位于my inbox.php中,单击后,它将打开名为“acknowledge.php”的弹出页面(新win)。但当我退出/取消时,通过单击“否”按钮,它将返回inbox.php(正是我想要的),但页面大小较小(