hello,
i'm trying to pass a php array to a java script function.
first i turn the array into a string:
PHP Code:
<?php
$my_arr = Array("one", "two", "three");
$arr_str = implode(',', $my_arr);
?>
<--html code -->
<input type = 'radio' name='name' value='value'
onclick = print_php_arr(<?php echo $arr_str ?>)>Radio Button
my question is I get errors when trying to run this. My question is how do i pass a php array to a javascript function??/
thanks,'
djgerbavor3