Manas Kulkarni <[EMAIL PROTECTED]> wrote:

: %in = $query->Vars; # get the form data into a hash
: 
: foreach $key(keys %in) {
:  if($key eq 'sequences') {
:           $file_data = $in{$key};
:  }
: }

   Arrgh! I have never understood the desire to immediately 
place all parameters in a hash. This replaces all that.
Though it doesn't solve your problem.

my $file_data = $query->param( 'sequences' );


: open(SEQ,">/home/web/insequences");
: print SEQ $file_data;
: close SEQ;
: 
: When I open my server side file all I see is the key (sequences).
: I think I had read somewhere that if you submit a form using
: an input type file, then the file contents are read into that
: particular field. Where am I going wrong or is there any other
: decent way of doing this?

   Read about file uploads in the CGI.pm docs. You have been
misinformed about the use of this field with perl.


HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
254 968-8328








-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to