Re: embedded PHP in HTML

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Try this way... remove <script language="php"> and
</script>

<html>
<head>
</head>
<body>
<p>trying to call PHP.</p>

<?php 
  echo "hello there";
?>

</body>
</html>

HTH
Piotr


--- Ahmad Khashan <akhashan_or@yahoo.com> wrote:
> I am trying to get this code to work: 
> <html>
> <head>
> </head>
> <body>
> <p>trying to call PHP.</p>
> <script language="php">
> <?php 
>     echo ("hello there");
> ?>
> </script>
> </body>
> </html>
> 
>  
> 
> The PHP code is not executed. Any way to get this to
> work?. BTW, I can execute PHP files if i use the
> form....action...submit route.
> 
> Many thanks....
> 
> 
> ---------------------------------
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux