Posted by Disco Octopus on 02/06/06 01:02
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; ?>';
>
> but it's not working
>
> Can anyone help my with it?
> Leszek
Just some thoughts....
Does it work outside of your javascript?
Can youy renmae the page from "thing.html" to "thing.php"? Does it fix the
problem?.... If so..... Is the extension ".html"? And have you set up your
server to execute "*.html" pages as php?
--
dont pick your nose if it is sore
Navigation:
[Reply to this message]
|