Tell what someone has clicked using PHP?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
robynprivette
Forum Commoner
Posts: 46
Joined: Sun May 02, 2010 6:22 pm

Tell what someone has clicked using PHP?

Post by robynprivette »

I have a click site for a fansite and I want to know if there's a way to let users know what they've already clicked on. I don't know if you can use PHP for that or not but any help is appreciated!
User avatar
MindOverBody
Forum Commoner
Posts: 96
Joined: Fri Aug 06, 2010 9:01 pm
Location: Osijek, Croatia

Re: Tell what someone has clicked using PHP?

Post by MindOverBody »

You can use javascript to do that, maybe even php in some way... but if you give a little more information, you'll get more subtile answer :D
User avatar
robynprivette
Forum Commoner
Posts: 46
Joined: Sun May 02, 2010 6:22 pm

Re: Tell what someone has clicked using PHP?

Post by robynprivette »

Ok people enter codes into a form. then the codes are made into images of the adoptable that you can click on to "grow". People want to be able to tell which "creature" they have already clicked on so they can click on the ones they haven't clicked yet. Make sense? I can show you the main page where the creatures are at. And JS is fine to use I just don't know anything about it.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Tell what someone has clicked using PHP?

Post by califdon »

PHP is a server language. Once a page has been sent to a browser, there is no connection between the browser (where the user may interact) and the server until a new request is received by the server. What you want requires a client language that works in the browser, which is exactly what Javascript is. You can embed Javascript in an HTML file and use it to detect what the user does and respond in various ways.
Post Reply