Re: [PHP-DEV] Auto Download From: Stig Bakken (ssb <email protected>)
Date: 12/01/99

On Wed, 1 Dec 1999, Bryan Gintz wrote:

| Is there any way that I can have a download start right after the
| submission of a form.
| Example:
| User picks a file and hits submit, as soon as the form comes back it
| pops up the little "save as" box.

The "standard trick" is to use Javascript in the resulting document:

<body onLoad="document.location = 'http://foo.com/file.zip'">

 - Stig

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>