Thread:Project:Support desk/passing values in editform hook

I've created a hook extension so when you edit a page there is a button 'add images' and a popup with a form comes up. $wgHooks['EditPage::showEditForm:fields'][] = 'AddImagesHooks::fnAddImages';

There are radio buttons 'upload image' or 'choose from existing'. However when I submit the form and look at the source code it only works for the id=editform and I can't pass any information though the form. It seems the hook 'editform' is overriding my form actions and method.

Choose from Exisiting Upload Image Add Image How do I pass my values, overriding the 'editform' action? Also I get the message 'Remember that this is only a preview. Your changes have not yet been saved!' and 'Warning: This page was deleted after you started editing!' and everything is deleted. What is going on? Thanks