Forum Moderators: coopster
As long as you can send variables back to the server, PHP can do something with them with the next request delivery. During the posting to the server, and when PHP is doing its thing AT the server, you can stick a little MySQL interaction in there.
Pass variables to PHP by modifying/writing a cookie or by including the variables in the URL (?id=01&sub=2).
PHP can't dynamically change an already-loaded page, like Javascript can. Likewise, Javascript in its client-side invocation cannot alter page code before it is received by the client, as you may well know.
You can peruse the server-side javascript guide [javeriana.edu.co] (also available here [developer.netscape.com] for version 1.2) and reference [docs.sun.com] (version 1.2 here [developer.netscape.com]). Perhaps start with a brief overview [xoology.com] and [url=]tutlorial[/url].