PHP and JavaScript

From: Date: Sun, 26 May 2002 07:05:03 +0000
Subject: PHP and JavaScript
Groups: php.general 
Request: Send a blank email to php-general+get-99286@lists.php.net to get a copy of this message
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...

« previous php.general (#99286) next »