Click to See Complete Forum and Search --> : VISITOR MONITOR with cookie to show only 1st visit


oakgrovehigh
08-26-2003, 08:45 AM
i have the script for a VISITOR MONITOR, but how can i add a script using a cookie to only show the email script on the first visit. I would not want multiple emails from kids over and over again. ANY IDEAS? thanks in advance.
bp

pyro
08-26-2003, 09:11 AM
Yeah, use serveside code to log visitor information. That is a much better way to do it.

diamonds
08-26-2003, 10:50 AM
If you MUST to do it with javascript, try this:
http://javascript.internet.com/cookies/only-popup-once.html

But you should use server-side code if you want a message coming into your inbox everytime someone new enters your site.

Try to use somthing that uses cookies OR a database.

diamonds
08-26-2003, 10:52 AM
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.


Did you just change that, pyro? I love it:D

oakgrovehigh
08-26-2003, 11:14 AM
Thank you both, I am a teacher at a high school, and just enjoy playing with alot of different things. I have a masters in elem ed, so server side doesnt really tell me alot. You are both extremely helpful, but if you could give me a little more info i would be estatic. I just want a list of who visits the site, usually around 50 hits a day, but i would want genuine hits, not the same kids over and over again. I have read about java building a database, just any info would help.

pyro
08-26-2003, 11:24 AM
diamonds -

Yep, just added it yesterday. It rings home true when you are trying to think of every possible thing a user might type into the app you are writing. ;)

oakgrovehigh-

I highly recommend PHP as a serverside language. If you have questions about PHP, post in that forum, and I'm sure someone will be happy to help you...