I'm using the typical HTML form (<input type="file" name="picture">)
FOr teh form handling part, what I have so far is
if($submit)
{
//upload images
if(file_exists($photo)){unlink($photo);}
move_uploaded_file($_FILES['picture']['tmp_name'], $photo);
echo "<br><br><br><center><font class=\"alert\"> Picture ".$pn." successfully added/replaced/deleted. </font></center><br><br><br>";
unset($_POST);
echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"2; URL=membercarcontrolpanel.php\">";
}
Now I'm wondering how I can restrict the file type to image files, under 4,000,000 bytes(4 Megabytes). Image files includes JPG, GIF images, to save space. Unless there are other common types of image formats that are size-efficient and widely used...
Thank you.