I want to add javascrept variable to php echo
arr[i]='<?php echo $winner[javascript variable]; ?>';
Thanks
I want to add javascrept variable to php echo
Thanks |
|||||||||
|
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
You can't.
The PHP has finished running by the time the JavaScript is executed. If you want to pass data back you need to make a new HTTP request and run a PHP script from scratch. |
|||||||||
|