How to send submission data to local server?