Helping ordinary people create extraordinary websites!

Pre-Fill Forms From Last Use

By Will Bontrager
2005-04-18

Pre-Fill Forms From Last Use
When your visitor fills out any form on your web site, all the other forms on your web site can be pre-filled in with the information s/he provided.

If the visitor provided a name and email address, for example, that name and email address can be pre-filled in all of your other forms. The pre-fill can be during the current site visit and for site visits as long as ten years in the future.

It's done with a cookie.

See http://willmaster.com/ for an example of how it works.

Use any subscription, recommend, or contact form on the willmaster.com domain -- the home page, in the WillMaster Possibilities section, or in the Master Series CGI section. After that, all subscription, recommend, and contact forms on the willmaster.com site will have the name and email fields pre-filled for you.

Your browser must, of course, accept cookies. If not, or if your preferences are set to accept only session cookies (willmaster.com cookies are set for 365 days), then the forms won't be pre-filled in for you.

JavaScript is used to set and retrieve the cookie.



Tutorial pages:

Copyright 2004 Bontrager Connection, LLC


 1 Votes

You might also want to check these out:


Leave a Comment on "Pre-Fill Forms From Last Use"
You must be logged in to post a comment.

Link to This Tutorial Page!


GET OUR NEWSLETTERS