CGI::Application design question

2004-11-26 Thread Kasturirangan Rangaswamy
Hi, This is a CGI::Application design question. It concerns side- stepping normal run modes at any point within the application to display an error screen. I have created a 'base' module whose job it is to a. Setup a connection to a database b. Initialize session c. Bring th

Re: One line file as an array (Form included)

2004-11-26 Thread Gunnar Hjalmarsson
J. Alejandro Ceballos Z. wrote: I am sending a text file with SQL statements via Form to a CGI. Are you trying to upload a file, or are you just sending the file contents as an ordinary parameter? Just the file contents as a parameter Well, the form you just posted includes a file select contro

Re: Forcing download of compressed file

2004-11-26 Thread Marek Kilimajer
Sean Davis wrote: I have a simple question: I have a file that is a tar.gz file that I want download to the user when a form is submitted. The file is static and I know how to set headers, etc., for download. Is there a specific header type for tar.gz files (so that the browser will try to unc

Re: One line file as an array (Form included)

2004-11-26 Thread J. Alejandro Ceballos Z.
>> I am sending a text file with SQL statements via Form to a CGI. > Are you trying to upload a file, or are you just sending the file > contents as an ordinary parameter? Just the file contents as a parameter >> I am trying to make the file as a one line (and deleting extra spaces >> too)