Navigation Menu
Alphabetical Listing
Site Contents

Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Become a Partner

Internet.commerce

Be a Commerce Partner














Internet.com

IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


Social Bookmark

General

This script is for use in forms that require user input; e.g., blogs which require users to type their name and e-mail address in order to submit comments. Users will have the option of allowing their information to be remembered. The script uses cookies to store and output the information.


Name:   
E-mail:   
Remember me?:   
   

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: rememberMe.js


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum. Do not include more than two (2) lines of code in your comments. If you have suggestions or corrections, you can submit them to us.]

    
   
       
[optional]
 
[optional]

   

Comments feed Comment Feed RSS 2.0

5. From: Lori T
Syntax error Line 8
11/21/2008 17:38:51

document.cookie = name+"="+value+expires+"; path=/"; }

I'm getting a syntax error on this line, I don't know why. I haven't changed anything. Using IE7. It doesn't like ; path=/";}

3. From: Gavin Leeburn
Remeber me
04/30/2008 11:57:20

Hi I have designed a web site for my health centre were there is a online prescription ordering feature , called orderscript.asp when they put their info in and hit submit the information is passed to my access d.b.(in a table) and the user is taken to a page called order.asp were they are thanked for the order.
I now want to use cookies so that when the users at home go onto my site their details are remembered.

I was thinking of having like a "remember my details "check box like you had and if they clicked it , it would remember their details next time. COuld you help me thanks on how to do this.

4. From: Lee (Admin)
06/26/2008 11:43:26

In order to better help you, you'll need to post your question over on the forums.

2. From: Frank Nguyen
06/15/2007 14:21:50

I tested with jsp and it seems not working. After the first save (onclick), a return submission did not get values from cookie...

1. From: jackques k.
rembering checkboxes
05/26/2007 20:17:57

Is there a way to make this script to remember other checkboxes besides the check box that allows users to remember their user information?


Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.