[eluser]Shiju S S[/eluser]
I have a script with code
Code:
var fcontent=new Array();
var count="<?php echo $ctr;?>";
begintag='<div style="font: normal 14px Arial; padding: 5px; text-align:center; ">';
for (j=0; j<count; j++)
{
fcontent[j]="<?php echo $c_purpose[$i];?>";
"<?php echo $i++;?>";
}
closetag='</div>';
$c_purpose is a php array. I want the array contents to be stored in the javascript array fcontent. $i is not incrementing. What is the solution.