add a simple attachment function,doesn't work perfect yet, need to solve
the submit, database, files problem