Javascript/PHP popup page problem
- by Suezy
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">
<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.