Re: Form duplicate post problem

From: Date: Sun, 29 Dec 2002 04:28:47 +0000
Subject: Re: Form duplicate post problem
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-129570@lists.php.net to get a copy of this message
You can close it with JavaScript. Something like <script language="JavaScript"> function open_a_window_please(){ lovechild = window.open("childpage.htm"); </script> Now we have a name that can tell the browser which window to close. We're ready to use the "window.close()" method. In the parent page add the following closing link: <body> <a href="javascript: open_a_window_please()">Click here to open a window.</a> <a href="javascript:lovechild.close()">Click here to close the child window.</a> </body> Dont forget you will need to use "flush" betwen your major parts otherwise it might not get sent to the browser right away. Mike P.S. Alot of PC's dont allow window.open anymore. People install ad blockers so it doesn't work. *********** REPLY SEPARATOR *********** > > I gave up on reinventing the wheel and i am trying to use that >middle-page method you guys mentioned. To make things a little more >transparent to the user, i thought of using a popup window instead, you >know, a tiny window pops up, with the code to insert the comment on the >database, and closes right after it does so. > > but err..how can i close it right after the database insert? > > Pag > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#129570) next »