window.close() It's JavaScript.
PHP is a server-side language and cannot affect anything on the browser itself. PHP cannot: 1. Close a browser window 2. Spawn new windows 3. Produce pop-up boxes 4. Do form verification before the form is submitted 5. Do anything to a page after it is loaded 6. Disable the back button 7. Change the right-click menu 8. Do image roll-overs 9. Dyanimically refresh a page which is already loaded 10. Make text blink All of the above need to be accomplished with JavaScript or regular HTML. I believe that this is the fourth e-mail to this list that I've seen over the past three days that asked how to perform a traditional JavaScript function with PHP. PHP is a great language for back end functionality and for creating web pages on the fly, but once a page has been loaded into the client browser, PHP loses all control over the page. Any more functionality that you wish to install on your page must be done with JavaScript. At 05:07 AM 10/30/2001, André Castanheira wrote: >Hi, > >Is there a php command to close a window or return to the previous one ? > >Obrigado, >André Castanheira >Carioca Engenharia S.A. >+55 21 3891-2200 r; 2325 > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupéry "Push the button, Max!" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]