Created
October 4, 2012 07:08
-
-
Save zyphlar/3831934 to your computer and use it in GitHub Desktop.
Storing & retrieving form fields in a JSON cookie
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<script language="JavaScript" src="form-field-json-cookies.js"></script> | |
</head> | |
<body onload="onLoad()"> | |
<form id="myform" name="myform" onsubmit="return onSubmit()"> | |
<!-- your form fields here (hidden fields will not be cookified) --> | |
<input type="text" name="a" /> | |
<input type="text" name="b" /> | |
<input type="submit" value="Go" /> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment