Reply to Re: php code in javascript

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на 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

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