I'm a web designer and i have a client that wants to upload his own images for thie website.
I got this script from a php file upload tutorial
<form name="form1" method="post" action="" enctype="multipart/form-data">
<input type="file" name="imagefile">
<input type="submit" name="Submit" value="Submit">
<?
if(isset( $Submit ))
{
// why does this statement always fail even when its a gif
if ($_FILES['imagefile']['type'] == "image/gif"){
...