| You are here: DEVPPL ‹ Forum ‹ Programming ‹ JavaScript Forum |
NOTIFICATIONS
|
|
|||||||||||||||
Login |
javascript in php
1 post
• Page 1 of 1
0
javascript in php
I have an external php file that is posting some javascript that includes a php array...
echo "
function html_event()
{
alert(\"".$php_array[0]"\");
}
";
so far so good. but if I want to loop through the array I am having trouble...
echo "
function html_event()
{
for(var i = 0; i <=3; i++){alert(\"".$php_array[i]"\");}
}
";
thanks for any help
echo "
function html_event()
{
alert(\"".$php_array[0]"\");
}
";
so far so good. but if I want to loop through the array I am having trouble...
echo "
function html_event()
{
for(var i = 0; i <=3; i++){alert(\"".$php_array[i]"\");}
}
";
thanks for any help
- Mielke
- Reputation: 0
- Posts: 3
- Joined: Mon Oct 03, 2011 2:08 am
- Highscores: 0
- Arcade winning challenges: 0
|
|