For some reason I can't get it to upload a photo.
I have done it before and It seems I'm doing it the same way now, but it doesn't work.
My script look like this.
<input name="upload" type="file">
<input type="submit" name="Submit" value="Submit">
</form>
<?
$uploadphoto = $_SERVER['DOCUMENT_ROOT']."/Photos/";
$uploadfile = $uploadphoto . $id.".jpg";
move_uploaded_file($_FILES['upload']['tmp_name'], $uploadfile);
the $id is ofcause a number, and it is checked that it contains a number.
What am I missing here. ?