View Single Post

  #9 (permalink)  
Old 09-06-2004
Michael Fesser
 
Posts: n/a
Default Re: newbie needs help with checking for posted data

.oO(Miffed)

>> <form enctype="multipart/form-data" action="<?php print
>> ($_SERVER["PHP_SELF"])?>" method="POST">
>> <input type="hidden" name="MAX_FILE_SIZE" value="51200">
>> <input type="file" name="fupload"><br>
>> <input type="submit" value="Send file!">
>> </form>
>> </body>
>> </html>
>>
>> As you'll see, this is a simple form to upload a file. Whether I send a
>> file or not, the test for 'fupload' fails.

>
>I've just worked out I have to use a $_FILES prefix, but now the test is
>true even BEFORE I send a file!


You could test for $_POST['submit'] instead.

Micha
Reply With Quote