Posted by Mike Scougall on 02/05/06 22:51
"Leszek" <leszekt80@poczta.onet.pl> wrote in message
news:ds5o7p$aoq$1@news.onet.pl...
> Hi
> I have a problem while inserting php code into javascript
>
> var danevar1 = '<?php echo $dane1; ?>';
>
> this line doesn't work
> i tried also:
> var danevar1 = '<? echo $dane1; ?>';
>
> but it's not working
>
> Can anyone help my with it?
> Leszek
>
Try this --
var danevar1 = "<?=$dane1;?>";
[Back to original message]
|