You are here: DEVPPL Forum Programming JavaScript Forum
NOTIFICATIONS
54.083
MEMBERS
15.684
TOPICS
62.255
POSTS
  562
FLASH GAMES
7.740
TUTORIALS
 

Login

E-mail:
Password:

javascript in php

0

Loading

javascript in php

Postby Mielke » Wed Dec 21, 2011 1:31 am

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
Mielke
 
Reputation: 0
Posts: 3
Joined: Mon Oct 03, 2011 2:08 am
Highscores: 0
Arcade winning challenges: 0

javascript in php - Sponsored results

Sponsored results

Login to get rid of ads

 

^ Back to Top