Hi this is my Form , when User fill form and by mistake he click on back button.
I want when he open it next time all values be there, so he cant type again

<form name="form1" method="post" action="checklogin.php">
					 <input name="myusername" type="text" value="Enter Your Username"onfocus="this.value=''" />
                      <input name="mypassword"  type="password" id="mypassword" />
                       <input type="submit" name="Submit"  value="Login" />

Edited by ayesha789: I chage beacuse old form was too big and complex for learning

7 Years
Discussion Span
Last Post by F-3000

Is it possible to achieve form preservation like Hotmail and yahoo forms


phpBB-forum has this ability, if it's not browser-based ability. You could dig the method from it's code.

Although, one way is with AJAX: When field content changes, JS sends the content to server for storage. Time interval (or something else) is needed to avoid flooding the server with every single keypress?

Also, you can clean the output (html) from tabs with this:

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.