You are here: Re: How to share/use a variable between PHP and HTML on the same page ? « PHP Programming Language « IT news, forums, messages
Re: How to share/use a variable between PHP and HTML on the same page ?

Posted by Toby A Inkster on 11/19/07 08:41

pradnya wrote:

> How to share/use a variable between PHP and HTML on the same page ?
> ( i.e. without using GET/ POST etc.... )
>
> Is it possible ?

Not sure what you mean. HTML doesn't have "variables".

> And what about same with PHP and JavaScript ?

Depending on what you want to achieve there are several techniques. You
can use PHP to generate the Javascript in the first place, which allows
PHP to populate the script's variables with certain values. Or a piece of
Javascript can communicate with a PHP script using AJAX.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 12 days, 15:35.]

USD/EUR Exchange Rate Graph
http://tobyinkster.co.uk/blog/2007/11/18/usd-eur/

 

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

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