Reply to Re: Java Script and PHP

Your name:

Reply:


Posted by Betikci Boris on 12/24/07 10:20

On Dec 22, 9:33 pm, HardySpicer <gyansor...@gmail.com> wrote:
> I have an application that uses Google Maps. This works fine but I ned
> to read a file. I can do this in PHP but how to mix PHP with Java
> Script? Do they live together or do I need to end each block of script
> then start the php - then end it etc.
>
> regards
>
> Hardy

ANOTHER USAGE:

<html>
<head>
<title>Alternative PHP usage</title>
</head>
<body>
<script language="javascript">
<?php if($variable!=true){?>
alert("variable is false!");
<?php
echo "</script>";
echo "</body>";
echo "</html>";
die();
}
else {?>
alert("Ok variable is true");
<?php }?>
</script>
</body>
</html>

I always use this kind of stuff in validating forms and session
management...

[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

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