Creating attachment script

hi all.
does any body know how to impliment an attachment button?
to pick up jpgs, pdfs. and allow them to be posted on a submition?

regards brendan