I got a form where the user is inserting some data and also uploading an image.
To deal with the image, I got the following code:
define(\"MAX_SIZE\"
You can use this library to manipulate the image while uploading. http://www.verot.net/php_class_upload.htm