-1

[1] http://imgur.com/a/Ny8f7 "html code" [2] http://imgur.com/a/kzEN2 "php code"

I try to use the variables from php in javascript to generate a chart with them.

2 Answers2

0

Try using an id e.g.

In your html name='someName'>

Then use that ID in your JS.

edy.devs
  • 79
  • 9
-1

Use can use something like this:

var data = '<?=$dataFromPhp?>';