I have problem, when I press submit button in my contact form all input values refreshing, it’s good if all fields are filled correct, but if are some warning users must see previaus values, but all are cleared. My Javascript skills are low, maye are solution to solv this problem with php and html ?
Share
a simpler way is use html5 storage . store value on onkeyup event and destroy if submit successful
for an example
script
to check support of html5
script to store
to clear storage ,you can fire this if form successfully submit it will clear storage
you can also make ajax call on change or keyup event and store value to database so that if html5 is not supported by browser it will still work but it will cause more load on server