This won´t work because jscript and php will not interact. Is there a way of calling php from javascript?
--One thing I saw, is that one can use variable sharing, I mean:
Some HTML
Some Javascript
Some php and a variable
Some HTML
Some php that understands the variable
The other way is to submit a form and capture it in php, the form values can be manipulated in Javascript, and then after submiting you will have them in php.
Tried several times to execute php from javascript, but it did not work. Also tried to execute php in the middle of a javascript, also did not work.