This would prevent nonjavascript browsers from submiting the form. Better would be to use the
page that comes after submiting:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<title>Form submited successfully</title>
<meta http-equiv="Content-Type" content="text/html">
<link rel="stylesheet" href="styles.css" type="text/css">
<body bgcolor="#FFFFFF" text="#000000" onLoad="window.opener.location.reload(); window.close()">

<h3>Form submited successfully</h3><br>
<input type="button" value="Close" onClick="window.close()">


Ernest E Vogelsinger wrote:

At 09:21 02.12.2002, Michael P. Carel said:

Sorry for this kind of post but i cant find a better mailing list for
I have a problem in refreshing my php page script. Im using javascript to
open new window for editing purposes. But i want my opener opener page to
auto reload upon submit in my new window.

Use JavaScript, for example. There is a window property called "opener"
which is a handle to the window which opened the popup. Upon form submit,
you could:

<script language="JavaScript">
function submitForm(form) {
return true;

...within your form code...
<form name="myform" method="post" action="something">
...your form contents...
<button value="Submit this" onClick="submitForm(myform)">

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to