You are here: Re: php in javascript « PHP Programming Language « IT news, forums, messages
Re: php in javascript

Posted by fletch on 04/24/06 11:23

You need to learn about the request resonse model. php is run to
produce html(& javascript) which is then sent to the browser. The
broser then runs the html (& javascript). So your code will be
delivered to the browser as

<script language = "javascript">

function getS (id){
var output = "";
if (document.getElementById("id").checked)
{
output = output + testing ; // <- error testing is not a variable.
}}

</script>

 

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

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