i have done add and edit logic in one form.
by putting this condition..$_GET[id]>0:"EDIT":"ADD"
now one problem occurs during my editing page.
when i delete the old image, then it will be deleted from specified folder and my d/b's field. but my submit button will show ADD, instead of EDIT.
would you help me out..