I've narrowed down my code to this, but can't seem to figure out what's wrong. Basically the name isn't output when an image is uploaded.
<?
if ($submit)
{
$name = $_FILES['attachment']['name'];
echo "$name<br>";
}
else
{
?>
<form action="scraps_test_photo_upload.php?submit=y" method="POST">
<input type="file" name="attachment">
<input type="submit" value="Upload">
</form>
<?
}
?>
Thanks in advance 🙂