diegogs_
diegogs_

Reputation: 97

Reset a form in html5 with submit

Is it possible to not reseting a form when you click a submit input type. You know that when you click the submit button in html5, all the form is converted to blankspaces, is it possible to not reseting it keeping the old values?

Upvotes: 0

Views: 43

Answers (1)

Kingsley Uchenna
Kingsley Uchenna

Reputation: 700

It depends on your language like php, if it is a request with POST method it will be stored in a global array $_POST['field_name'], get $_GET['field_name'],

You can use it to retain your values. So which language are you using?

Upvotes: 1

Related Questions