Click to See Complete Forum and Search --> : Help for a novice


conundrum
12-12-2003, 05:15 PM
I'm wondering if there is a way to have a link go dead or disapear after it has been clicked once. Sorry if this is boring and mundane!!

fredmv
12-12-2003, 05:28 PM
Welcome to the forums.<a href="http://www.google.com/" onclick="target='_blank';style.display='none';">Google</a>

conundrum
12-12-2003, 05:41 PM
Thanks. Is there a way to make it NEVER show up again? I'm trying to create a web site for my family to choose names for christmas. If a name is chosen (clicked on) I don't want it to be available to the other people.

fredmv
12-12-2003, 08:36 PM
You'll most likely have to use server-side cookies for that.

pyro
12-12-2003, 08:48 PM
Actually, it will not use cookies at all. A cookie would only be useful if one browser would be used to access it. I'm assuming he wants this to be able to be accessed by multiple users. What you will want to do is write which names have been chosen to a file, and then just output the names that have not been chosen.

fredmv
12-12-2003, 08:56 PM
Very true Ryan, I should've thought of that. That's what I get for having a client-side mindset. Thanks for the correction. :D

pyro
12-12-2003, 09:01 PM
No problem... :)

conundrum
12-12-2003, 09:07 PM
I'm in WAY over my head but thanks anyhow! And it's She. ;)

pyro
12-12-2003, 09:13 PM
Sorry 'bout that... ;)

If your server supports PHP, fire a post off in our PHP section, and I or someone else will get around to helping you out. :)