to accept attachment can mean many things.
I guess what you are looking for is a a form element to upload local files, this can be done with an input-tag:
To process the data from this field you need the global variable $_FILES. A good documentation about how to do this can be found at
php.net