I'd like to have an online form and would like to be able to upload an image which falls within dimension and/or kb limits as part of a form. Whats the best way of doing it? The server already has sendmail installed if thats any help? I thought of having an upload script, when upon upload would send you onto the next page which would pass the variable into the form telling the operator the other end which image file within a certain folder belongs to that user?
This with this and this. As for file size, you could either set the maximum size as the hidden field in the form (see first link) or just check the $_FILES['fieldname'] array afterwards, the size of the image is stored in kilobytes iirc.