Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: CGI and Storable : explain me this, please.

by lepetitalbert (Abbot)
on Apr 27, 2006 at 02:57 UTC ( #545938=note: print w/replies, xml ) Need Help??


in reply to Re: CGI and Storable : explain me this, please.
in thread CGI and Storable : explain me this, please.

Hi Monks

Yes I'm uploading 3 pics.

this works

$db{"1"}{"pic1"} = "$var";

Thanks

The code is

for ($i=1; $i < 4; $i++) { $tmp = "pic" . $i; my $filename = $query->param($tmp); $db{$n}{$tmp} = "$filename"; $upload_filehandle = $query->upload($tmp); open UPLOADFILE, ">$upload_dir/$filename"; binmode UPLOADFILE; while ( <$upload_filehandle> ){ print UPLOADFILE; } close UPLOADFILE; } store \%db, $dbfile ;


Thanks

Have a nice day

"There is only one good, namely knowledge, and only one evil, namely ignorance." Socrates

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://545938]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (1)
As of 2020-10-25 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (249 votes). Check out past polls.

    Notices?