I know that I can use javascript on this one, but I ran into a problem.
I have a simple form that submits data to my database - easy stuff. But, I want to close the popup window after submission.
Here's what I've done:
<form id="form1" name="form1" method="post" action="" onSubmit="window.close();">
<input type="text" name="email" value="1" />
<input type="submit" name="Submit" value="update" class="textbox"/>
</form>
I have the INSERT statement on the same page, but I think the onSubmit="window.close();" stops the form data from reaching the insertion script.
I tried putting the data inside a separate file too, but I still got the same results, the data does not reach the INSERT statement.
How can I close the browser window after the data has been processed?
thanks!