Thanks for your reply.
I have tried this upload and it is working.
I have another issue with my script.
The form is designed in a template and I am uable to get the value for $_FILES[$fieldname]['tmp_name'].
Is there any tutorail on working with template and forms with php?
Your help on this will be much appreciated.
Thanks,
Arun.