Can someone fix my php code?

hi guys,

i searched the forums and came up with this thread **How can I edit an xml file through a php form?

from that i made these files and i cant get them to work?

first prob i have tryed to add a upload button this isnt working.

second prob i need the path to the image to be stored in the image path node in the xml.