RE: [PHP] PHP and JavaScript

From: Date: Sun, 26 May 2002 09:09:13 +0000
Subject: RE: [PHP] PHP and JavaScript
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-99287@lists.php.net to get a copy of this message
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:lietuva@xxx.lt] Sent: May 26, 2002 3:05 AM To: php-general@lists.php.net 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

« previous php.general (#99287) next »