Re: php's variables & javascript

From: Date: Mon, 27 May 2002 22:19:46 +0000
Subject: Re: php's variables & javascript
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-99408@lists.php.net to get a copy of this message
On Tuesday 28 May 2002 05:59, burak delice wrote: > I want to make a php that include javascript that use a php variable. Code > is below: No need to post twice. > <? > $size = GetImageSize ("images/$resim"); > echo "<script language=\"JavaScript\"> > wdth=";$size;echo";"; > echo "</script>"; > ?> That code looks broken to me. > (I am calling that php file as below) > http://localhost/Aksu/web/getimage.php?resim=K00.jpg > > But explore gives me an javascript error that syntax error. Why? and how > can do my purpose? Did you use view source (ALT-V, C) to see what is actually in the "<script ...> ... </script>" ? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* "The lymbic system in my brain is so electrically active, it qualifies as a third brain. Normal humans have two brains, left and right. - Jeff Merkey */

« previous php.general (#99408) next »