Page 1 of 1
Tell what someone has clicked using PHP?
Posted: Sun Apr 03, 2011 5:08 pm
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!
Re: Tell what someone has clicked using PHP?
Posted: Sun Apr 03, 2011 5:28 pm
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

Re: Tell what someone has clicked using PHP?
Posted: Sun Apr 03, 2011 5:41 pm
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.
Re: Tell what someone has clicked using PHP?
Posted: Sun Apr 03, 2011 9:00 pm
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.