Why wont this simple code work all of a sudden?
- by eric
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>