Sarat
Thanks, I'm new at this. As I understand, the PHP code is parsed first on the server, all executions/substitutions are made and HTML code is the result.
Now in the following code, the 'onmouseover' code is rendered as "show_text('1','Words')" for button #1 and this is stored as part of the HTML code.
Once the mouse hovers over it on the client side, then the JS "show_text()" is actually called and executed. The PHP array no longer exists. Right so far?
Quote:
|
The only way you can make JS variables accessible to PHP is to make POST or GET back to the server (call the .php again) with the required variables+values.
|
Can you give an example of calling the same php with var=value? Would this refresh (repaint the browser) the same page everytime it is called?
Could I give the table cell (<td id="value1,value2">) an ID with the (2) values I want to recall in my JS show_text() function?
Thanks again,
Steve