Tell what someone has clicked using PHP?
Moderator: General Moderators
- robynprivette
- Forum Commoner
- Posts: 46
- Joined: Sun May 02, 2010 6:22 pm
Tell what someone has clicked using PHP?
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!
- MindOverBody
- Forum Commoner
- Posts: 96
- Joined: Fri Aug 06, 2010 9:01 pm
- Location: Osijek, Croatia
Re: Tell what someone has clicked using PHP?
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 
- robynprivette
- Forum Commoner
- Posts: 46
- Joined: Sun May 02, 2010 6:22 pm
Re: Tell what someone has clicked using PHP?
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.
Re: Tell what someone has clicked using PHP?
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.