Welcome to WebmasterWorld Guest from 126.96.36.199
The upload form code allows a max of four images - the form code for an image looks like
<input name="userfile" onchange="return TestFileType(this);" type="file" />
When this form is posted the new script starts by finding how many image files have been uploaded
$tot = count($userfile);
The problem is that $tot is always 0. count() does not seem to be able to count!
I have checked that a file is being uploaded using $_FILES['userfile']['name'] and it is.
This worked fine on the old server.
I realise I could just loop though the filename array until I dont find one but I'd rather just leave the script unchanged. Any ideas where the problem lays?