Why wont this simple code work all of a sudden?

Posted by eric on Stack Overflow See other posts from Stack Overflow or by eric
Published on 2010-04-06T23:33:27Z Indexed on 2010/04/06 23:43 UTC
Read the original article Hit count: 171

Filed under:

Why wont this print "success" when i submit the form?!?! Im pretty sure it should work.

<?php

if (count($_POST) > 0) {

echo "success!!";


}

?>

<form method="post" enctype="multipart/form-data">

<input type="file" name="userfile" />

<input type="submit" value="upload" />

</form>

© Stack Overflow or respective owner

Related posts about php