Re: PHP from HTML
| From: | Matjaz Prtenjak | Date: | Mon, 08 Apr 2002 08:18:50 +0000 |
| Subject: | Re: PHP from HTML | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92002@lists.php.net to get a copy of this message | ||
THANKS!!!!!
That works!!
Except on PHP side I have to produce javascript code without <script> tag,
like
xTest.php - SERVER1 with PHP
document.write(<?php echo("\"This WORKS!!!\""); ?>);
on server 2 I just have to write this inside <script> tag, like
HTML file on SERVER2 WITHOUT PHP
<html>
<body>
<script src="...server1.../test.php"></script>
</body>
</html>
Thanks again!
Have a nice day
Matjaz Prtenjak
> One more compatible workaround would be to have your PHP return
> JavaScript:
>
> <script lang="javascript1.1">
> document.write("Hello from Server1");
> </script>
>
> In the HTML page on server2:
>
> <script
> src="http://server1/xTest.php"></script>
>
> Chris