Posted by Ian Collins on 02/05/06 23:53
Leszek wrote:
> 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; ?>';
> and
> var danevar1 = '<?= echo $dane1; ?>';
>
> but it's not working
>
What do you expect it to do? All you have done is create a string.
--
Ian Collins.
[Back to original message]
|