Bob,
Thanks. That was the issue.
Sean
On Jul 27, 2004, at 1:31 PM, Bob Showalter wrote:
Sean Davis wrote:
I am trying to write a toy script that will ask for an upload file and
then echo that file back to the user on the browser. However, if I do
this all in one script like the following, I get n
Sean Davis wrote:
> I am trying to write a toy script that will ask for an upload file and
> then echo that file back to the user on the browser. However, if I do
> this all in one script like the following, I get no echoed file.
> However, if I instead use a separate HTML form and submit to my
>
> On Tue, Jul 27, 2004 at 12:37:11PM -0400, Sean Davis wrote:
> > if ($q->param('upload_file')) {
> > my $fh=$q->upload('upload_file');
>^^
>
> Perhaps that should be param, not upload. I'm not familiar with an
> upload method in the CGI module.
>
>
Please check the docs,
Hi Sean,
I'm not sure but try taking out "$q ->" in front of your print statements.
i.e.: print header();
my $value=$q->param('upload_file');
Also, in the above you set the value of my $value but then do not use it
elsewhere in your script. In the below you end up using the value of my $value.
On Tue, Jul 27, 2004 at 12:37:11PM -0400, Sean Davis wrote:
> if ($q->param('upload_file')) {
> my $fh=$q->upload('upload_file');
^^
Perhaps that should be param, not upload. I'm not familiar with an
upload method in the CGI module.
William
--
Knowmad Services Inc.
http:/
I am trying to write a toy script that will ask for an upload file and
then echo that file back to the user on the browser. However, if I do
this all in one script like the following, I get no echoed file.
However, if I instead use a separate HTML form and submit to my script,
it works fine.
On Sun, 28 Jul 2002 00:51:06 -0700 (PDT), [EMAIL PROTECTED] (Nate)
wrote:
>i'm writing a website that requires an upload for pictures. I have figured out how to
>get the image, upload it to the correct dirctory and save successfully, but the
>problem comes with the fact that i have to specify t
Nate wrote at Sun, 28 Jul 2002 09:51:06 +0200:
> i'm writing a website that requires an upload for pictures. I have figured out how
>to get the
> image, upload it to the correct dirctory and save successfully, but the problem
>comes with the
> fact that i have to specify the filename. i want to
..grey { background-color: #cc; }Hello. I don't know how dumb this is going to
sound, but here goes:
i'm writing a website that requires an upload for pictures. I have figured out how to
get the image, upload it to the correct dirctory and save successfully, but the
problem comes with the