How to link a form to a directory