Re: PHP and JavaScript
| From: | Mark | Date: | Mon, 27 May 2002 01:06:21 +0000 |
| Subject: | Re: PHP and JavaScript | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99324@lists.php.net to get a copy of this message | ||
On Sun, 26 May 2002 10:05:03 +0300, mp wrote:
>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...
>
>
make sure $variable doesn't have any newlines.