how can I retrieve a file sent from an HTML form?

G

Guy

If the following HTML form is submitted to my perl script...

<input name='var3' value='test'>

....my Perl script can read that variable using the following code (assuming
I'm using the right library)

$var=param('var3');



But if the following HTML form is submitted to my Perl script...

<input name=fil type=file>

....how do I retrieve the contents of the file?



Thanks again,
Guy
 
S

Sam Holden

If the following HTML form is submitted to my perl script...

<input name='var3' value='test'>

...my Perl script can read that variable using the following code (assuming
I'm using the right library)

$var=param('var3');



But if the following HTML form is submitted to my Perl script...

<input name=fil type=file>

...how do I retrieve the contents of the file?

The way the documentation of the library you are using tells you to.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,143
Messages
2,570,821
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top