Javascript/PHP popup page problem

Posted by Suezy on Stack Overflow See other posts from Stack Overflow or by Suezy
Published on 2010-03-26T05:53:25Z Indexed on 2010/03/26 6:03 UTC
Read the original article Hit count: 273

Filed under:

I have a program in PHP that allows user to pop in a message, for confirmation from user. As seen below is the link i used.

From inbox.php:

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

From acknowledge.php:

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" onSubmit="window.close()">
</form>
</center>
</body>

The problem is, everytime i click "no", to go back from previous page. It sets the page size the same as the popup page. It becomes smaller too. What's the problem? Answers are very much appreciated.

© Stack Overflow or respective owner

Related posts about JavaScript