Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make WIN98 Save As window pops up using Perl?

Status
Not open for further replies.

rcsyee

Programmer
Joined
Jun 12, 2001
Messages
1
Location
MY
I am trying to do something like this:

Click on a self-made Download button which will cause the Win 98 Save As window to pop up and then i will be able to save the data i queried from a table in Sybase as a text file, say test.txt.
In PHP, i can do it using these 3 lines:

<CODE>
header( &quot;Content-type: application/x-something&quot; );
header( &quot;Content-Disposition: attachment; filename=$type.txt&quot; );
header( &quot;Content-Description: PHP3 Generated Data&quot; );
</CODE>

but how to do it using Perl?
 
take the CODE you have and replace the 'header' with 'print'. only, it's no longer php3 generated, so you can change that (or not, it won't really matter ^_^). also, instead of 'x-something', i think 'octet-stream' is valid. &quot;If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top