Cher,
The onclick=" is executed in the browser,
when your visitor clicks.
Only browser-side javascript can be
executed dynamically in the browser.
The PHP code that I see will be executed by the server,
while the server is constructing the HTML...
Therefore, the last PHP code, setting...