how to create file upload and hidden field with custom press

Hi,

how to create file upload and hidden field with custom press

how to export php code for use in function

Regards,