| 
 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...
 
  
Navigation:
[Reply to this message] 
 |