I'm trying to do a simple upload script:
<?
if (!isset($link_submit))
{
echo "<form action=\"$PHP_SELF\" enctype=\"multipart/form-data\" mehtod=\"post\">
<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"100000\">
<input type=\"hidden\" name=\"link_submit\" value=\"1\">
<br><input type=\"submit\" value=\"SUBMIT\">
Image: <input name=\"userfile\" type=\"file\"><br>
</form>";
}
else
{
$links="ok";
if (is_uploaded_file($userfile))
{
echo "UPLOADED<BR><BR>";
//move_uploaded_file ($HTTP_POST_FILES['userfile']['tmp_name'],"$links.jpg");
}
else
{
echo "NOT UPLOADED<BR><BR>";
}
}
?>
the thing works fine in Netscape but IE5 acts like nothing was uploaded. What could be the problem?
thanks in advance
robin