It's easy to make. You only need to use input html element to hold file path in user's machive.
Sorry, I can't check it now, but so I remember, it isn't necessary to name input starts with "fileupload", but you need only set attribute "type" of input to value "file".
SharePoint List Attachment Technical Brief