Re: uploading files problem
| From: | andy | Date: | Fri, 29 Mar 2002 11:08:20 +0000 |
| Subject: | Re: uploading files problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-90656@lists.php.net to get a copy of this message | ||
put dubble quotes inside your html. I think this is in the spec, as soon as
it is no numeric format:
<input type="file" name="file" size=30>
Cheers, Andy
"Claudio Fedel" <fedel@alcheragroup.com> schrieb im Newsbeitrag
news:D7075B09871FD411B7D900902785702401EFDCCA@sublime.alcheragroup.com...
> hi there,
>
> I'm trying to upload a file using php on an apache server running on
> linux.
>
> The code of the form I'm using is as follow:
>
> <form enctype=\"multipart/form-data\" method=POST
> action=$PHP_SELF?action=doupload >
> <p>File to upload:<br>
> <input type=file name=file size=30>
> <input type=text name=zio size=30>
> <p><button name=submit type=submit>
> Upload
> </button>
> </form>
>
>
> when I press the submit button after selecting the file, nothing
> happens.
> I tried to print the filename passed by the form but it is empty.
> If I run the same page on my win2k server, everything works fine.
> It seems as that the form doesn't pass post variables. I also tried to
> delete the enctype parameter and in this case the variables are printed
> on screen.
>
> Is there any particular setting on linux for this page to work?
>
> thanks
>
>
>
>