How do I pass an array variable from a php function into a javascript function?
I can pass it if it's just a variable but when it's an array, then the javascript can't read it.
From PHP:
<input type='button' onClick='Cycle(" . $sAllEventID . ")' value='Check Subtotal'>
To Javascript:
function Cycle(arrAllEventID) {
Could you please provide some code. Somebody suggested that I should "echo" into Javascript but I didn't know what that would look like. Thank you!
Andrea