Re: php's variables & javascript
| From: | Sagie Maoz | Date: | Mon, 27 May 2002 23:15:40 +0000 |
| Subject: | Re: php's variables & javascript | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99407@lists.php.net to get a copy of this message | ||
burak delice wrote:
hi everyone, I want to make a php that include javascript that use a php variable. Code is below: <? $size = GetImageSize ("images/$resim"); echo "<script language=\"JavaScript\"> wdth=";$size;echo";"; echo "</script>"; ?> I didn't get the third line.. That's no JavaScript..Isn't this supposed to be something like: <? $size = GetImageSize ("images/$resim"); echo "<script language=\"JavaScript\"> echo "document.writeln('width=\"$size\"');"; echo "</script>"; ?> -- Best Regards, Sagie Maoz n0nick@php.net