You are here: Re: php code in javascript « All PHP « IT news, forums, messages
Re: php code in javascript

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация