View Full Version : Creating a pop-up nfo collector

01-11-2007, 01:57 PM

You know those forms that pop up when you go to a on-line newspaper that asks for your first name last name, DOB, etc...which must be filled out before you are allowed to read an article from that site for the very first time?

Yes? Great. Um, how does one build a cookie that detects if you are a new visitor or a returning person that has already filled out the form?

I have no idea how to do this and cannot find the answer through a google search. Any help is appreciated. Thank you.

01-11-2007, 09:28 PM
More then likely they are an entire program that runs the membership and displays pages dynamically. Just setting a cookie would not really be reliable. It is a pretty vast subject. :) You could try googleing "setting a cookie with javascript" or "setting and reading browser cookies" That might give you some results you could use if your site is not dynamically rendered.

01-12-2007, 02:47 AM
Doing a google search on "create cookie" turned up this article.


Looks clear and useful.

01-12-2007, 07:18 PM
Thank you allfor replying. To elaborate I need a twofold cookie or strip of code.

something akin to this: www.azcentral.com or www.nytimes.com if you attempt to look at an article.

(see the registration page?)

an if/else. If I have never filled out and pressed submit of the default form show form else show page that I wish to go to.

1. When I go to the page if I have not filled out and pressed submit I see the registration page.

2. when I've filled out or have not filled out the fields and IF I have and have pressed submit successfully never shows me this page again unless I erase the cookie from my cpu.

I am a front end guy. Any specific instructions would be helpful. Thank You.

01-13-2007, 07:47 AM
I would suggest finding an php program that can manage this for you. These two links may help you. The first is a full featured program you pay for. The second is the listings at hotscipts and some may be free while others may have a fee attached.


You might be able to use Jomala or WordPress to accomplish this and both are available via the Site Manager.