04-21-2008, 01:39 AM
|
#2 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
What? This forum is for php, not javascript, I suggest a mod to move this to the javascript forum. oh and no, must be in the scope.
Also, you can put javascript in php, just do an echo or print | printf
PHP Code:
$js=array(); $js[0]="<script> var i =0; function xxxx ()
{
if (i == 1) php expression } else if (i == 2) php expression } </script>";
printf('%s',$js[0]);
#You can also do an sscanf and format it into another variable #without it outputting $f_js = sscanf($js[0],'%s');
__________________
VillageIdiot can have my babbies ;d
|
|
|
|