I’m trying to add an upload form to a site. I’m having a problem–the uploaded file doesn’t show up in $_POST. All the other fields work, and if I change the type of the file box to text it also works. Here’s the code for the form:
<form enctype="multipart/form-data" action="add.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="50000" />
<table class="plain">
<tr><td width="100">Name</td><td><input type="text" size="46" name="name"/></td></tr>
<tr><td>Description<br/></td><td><textarea name="content" rows="7" cols="45"></textarea></td></tr>
<tr><td>Tags (comma separated)</td><td><input type="text" size="46" name="tags"/><br/><em>Enter some keywords to help people find your skin.</em></td></tr>
<tr><td>Skin File</td><td><input type="file" name="skin"/></td></tr>
<tr><td>Note</td><td>Skin must be 64x32px; JPG, PNG, or GIF</td></tr>
<tr><td>Submit</td><td><input type="submit" value="Add Skin"/></td></tr>
</table>
</form>
I’m not sure if this is a PHP, XAMPP, or HTML problem, but does anyone see what’s wrong?