i want to save the post data to user pc before posting just incase of bad internet connection where it happens a lot in my area.
most of the time users write article , a
Add a submit listener to your form, prior submitting save all the form input values in the browser's local storage. In older browsers (IE) you can "polyfill" this non-existent functionality.
Have a look at this list of browser storage polyfills.