PHP Mail Form with .JPG Attachment

I’m presently building a php driven form that will be emailed to an address, but I need to allow the user to browse their computer for a .jpg, which will be sent in the email as an attachment. Does anyone know of a good tutorial on how to do this or can you point me in the right direction? Thanks!

JPearson311