Re: Re: Re: File upload in map drive with PHP
| From: | Stuart Dallas | Date: | Sat, 28 Jan 2012 10:31:18 +0000 |
| Subject: | Re: Re: Re: File upload in map drive with PHP | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-316420@lists.php.net to get a copy of this message | ||
On 28 Jan 2012, at 01:41, Michelle Konzack wrote:
> Merhaba Mehmet YAYLA,
>
> Am 2012-01-26 15:10:34, hacktest Du folgendes herunter:
>> I'm using code this bellow.
>
> ...with an error!
>
>> <form enctype="multipart/form-data"
>> action="upload_file.php?upload=1" method="post"> <input
>> type="hidden" name="MAX_FILE_SIZE" value="30000" />
>> Select image: <input name="userfile" type="file"/>
>> <input type="submit" value="Upload" />
>
> You can not use
> action="upload_file.php?upload=1"
>
> together with
> method="post"
>
> and you have to use
> <form enctype="multipart/form-data" action="upload_file.php
> method="post"> <input type="hidden" name="MAX_FILE_SIZE"
> value="30000" />
> <input type="hidden" name="upload" value="1"
> />
There is nothing stopping you doing this. Mixing GET and POST parameters is perfectly valid and can
be incredibly useful.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/