<html>
<head>
<title>MrsKramer.com > Upload File</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<?
if (isset($userfile))
{
echo '<font face="Verdana, Arial, Helvetica, sans-serif" size="2">';
echo "Uploading $userfile_name ($userfile_size bytes)...";
if (!file_exists($studentname))
{
mkdir($studentname, 0777);
}
if (!copy($userfile, "/usr/home/m/r/mrskramercom/public_html/students/$studentname$userfile"))
{
echo '<b>Failed to upload!</b>';
}
else
{
echo '<b>Upload successful</b> (<a href="uploadfile.php">Upload another file</a>)';
}
echo '</body>';
echo '</html>';
exit;
}
?>
<FORM ENCTYPE="multipart/form-data" ACTION="uploadfile.php" METHOD="POST">
<table border="0" cellspacing="0" cellpadding="5">
<tr>
<td bgcolor="#EEEEEE"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Name:</b>
<? require('studentlistdropdown.php'); ?>
</font> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td bgcolor="#EEEEEE">
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>File
to upload:</b></font></p>
<ul>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Only
allowed types are GIF, JPG, JPEG, PNG, CLASS, HTM, and HTML)</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Maximum
file size is 10,000 bytes (about 10 KB)</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Files
that are not directly referenced (i.e., for storage only) may be deleted
as space on the server is limited)</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Accessing
http://www.mrskramer.com/<i>lastname</i>/ will open
http://www.mrskramer.com/<i>lastname</i>/index.html.</font></li>
</ul>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<input type="File" name="userfile" size="30" maxlength="255"></font></p>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td bgcolor="#EEEEEE">
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FF0000">Warning!
Any existing file with the same name will be overwritten!</font><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><br>
Click the Upload button only once.</font></p>
<p>
<input type="submit" value="Upload">
</p>
</td>
</tr>
</table>
</form>
</body>
</html>