How to have a form submitted offline?