passing php string to javascript function
hello,
i'm trying to pass a php array to a java script function. first i turn the array into a string: PHP Code:
thanks,' djgerbavor3 |
Don't forget to pass quoted strings to your function as well as have the actual JavaScript function.
Code:
onclick = 'print_php_arr("<?=$arr_str;?>");' |
hey thanks, that worked perfectly. you da man
i was getting alittle stressed out because i couldn't figure out how to do it! thanks again, djgerbavor3 |
All times are GMT -5. The time now is 01:46 PM. |