It worked for me, what error are you getting?
In the other.html, did you have this?
<html>
<head>
<title></title>
<script language="JavaScript"
src="script.php"></script>
</head>
<body>
</body>
</html>
-----Original Message-----
From: mp [mailto:[EMAIL PROTECTED]]
Sent: May 26, 2002 3:05 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP and JavaScript
Hi, php-general,
I make this kind of PHP script(script.php):
script.php
<?
$variable = "Some some long long Text Blah
blah";
echo "document.write(\"".$variable."\")";
?>
And in HTML (other.html) file I write:
<script language="JavaScript"
src="script.php"></script>
But there is some mistake. Does anybody can help
me?
Thanks...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php