PDA

View Full Version : Creating a pop-up nfo collector



kurson
01-11-2007, 01:57 PM
Hi.

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.

wildjokerdesign
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.

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

http://www.samspublishing.com/articles/article.asp?p=31094&seqNum=1&rl=1

Looks clear and useful.

kurson
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.

wildjokerdesign
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.

http://www.bondware.com/news.php?viewStory=251&name=self-publishing-web-design-website-newspaper
http://www.hotscripts.com/PHP/Scripts_and_Programs/News_Publishing/index.html

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