
April 2nd, 2001, 01:54 PM
|
|
Junior Member
|
|
Join Date: Mar 2001
Posts: 6
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
I have created an array called $array_1 in PHP and I am trying to send it to a Javascript function. I can't seem to get the function to read the array. The code used to send the array and the function are below. Am I missing something?
function test_js(array_var)
{alert (array_var.length);
var index = 0;
}
<?php echo"<a href=\"#nothing\" onmousedown=\"test_js($array_1)\">click</a>"; ?>
Thanks,
Shawn
|