Re: File Upload Using CGI

2004-12-02 Thread Manas Kulkarni
OK Guys I tried using the upload method of CGI. Here is what I did: my $upload = CGI::Upload->new; *Do I need to associate the upload variable with the CGI object in some way which I am creating in the cgi script to accept the other parameters from the html form ?

Re: File Upload Using CGI

2004-12-01 Thread JupiterHost.Net
Sorry? How is foo( -name => $cgi->param("name"), -email => $cgi->param('email')); better than foo( -name => $query{name}, -email => $query{email}); ? Hey Jenda, I was referring to one of the questions about why people still want the hash like %IN and not paying much attention to th

Re: File Upload Using CGI

2004-12-01 Thread Jenda Krynicky
From: "JupiterHost.Net" <[EMAIL PROTECTED]> > Charles K. Clarkson wrote: > > > Manas Kulkarni <[EMAIL PROTECTED]> wrote: > > > > : %in = $query->Vars; # get the form data into a hash > > : > > > >Arrgh! I have never understood the desire to immediately > > place all parameters in a hash. T

Re: File Upload Using CGI

2004-12-01 Thread JupiterHost.Net
Manas Kulkarni wrote: OK. Advice taken. I have a moustache and I definitely don't wear diapers ;) Haha good one, lol ;) Thanks a lot, Manas. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: File Upload Using CGI

2004-12-01 Thread Manas Kulkarni
OK. Advice taken. I have a moustache and I definitely don't wear diapers ;) Thanks a lot, Manas. Quoting "JupiterHost.Net" <[EMAIL PROTECTED]>: > > > Charles K. Clarkson wrote: > > > Manas Kulkarni <[EMAIL PROTECTED]> wrote: > > > > : %in = $query->Vars; # get the form data into a hash > >

Re: File Upload Using CGI

2004-12-01 Thread JupiterHost.Net
Charles K. Clarkson wrote: 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 para

RE: File Upload Using CGI

2004-12-01 Thread Charles K. Clarkson
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

Re: File Upload Using CGI

2004-12-01 Thread Jonathan Paton
Dear Manas, Use the CGI module, which provides a upload() method. In fact, I googled about for a tutorial that didn't use perl 4's cgi-lib module. Read: http://www.sitepoint.com/article/uploading-files-cgi-perl Jonathan Paton -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman