How do I know when a client submits a form?