How can I change the value after clicking a cell? Dear friends, I want to click a cell. the content of the cell and the assignment of another variable change. I wrote this, but it does not seem to work. why? Thank you!
$ Txt = 'none'; $ m = 17;
Echo"
";
Function ad (){
If ($ txt = 'no ')
{$ Txt = 'you ';
$ M = 21 ;}
Else
{$ Txt = 'none ';
$ M = 17 ;}
}
?>
In fact, $ txt is two values, one is "none", the other is "you", and $ m is two values, one is 17, and the other is 21.
Reply to discussion (solution)
Of course not!
The js function ad is called here, not the php function ad.
How can we change it? I still can't! Thank you.
Can someone help me? How to implement this.
You write function ad () in the script tag and follow the echo statement. Click does not call PHP functions.
Still not. I actually want to click a cell and switch the content between two values. I don't know how to implement it.