Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: http redirection and downloadby hatter (Pilgrim) |
on Sep 24, 2001 at 16:07 UTC ( [id://114292]=note: print w/replies, xml ) | Need Help?? |
A simple way (which iirc is what tucows do) is to send them straight to a thank you page, but include a javascript open in it, that opens the file they're trying to download, so they get the prompt to open/save the file, and are then still left on the thanks page.
Ah, seeing chadys post, using a meta refresh tag is a much better idea that javascript, though the result is the same. Also, you can actually print a real HTTP refresh/location header, instead of the meta tags (which will hide how you're doing it, to the casual user) the hatter
In Section
Seekers of Perl Wisdom
|
|