Re: php image and javascript include

From: Date: Sun, 07 Sep 2008 18:43:59 +0000
Subject: Re: php image and javascript include
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-279620@lists.php.net to get a copy of this message
javasac wrote:
[lots of stuff ...]
I'm guessing that was the *output* of the PHP file, not the script itself. You've got a couple different errors here. The first is that you're not creating img tags. All you have here is the path to the image. A browser isn't going to do anything with that.
                            <td width="10" height="7">
images/box_bottom_lft.jpg </td>
Second, at least one of the image paths is relative to your own desktop computer's drive (why is it that this always happens on a Windows box?)
                            <td width="11">
C:/wamp/www/yojoe-web/html/site/images/box_top_rht.jpg </td>
Also, in the future, it'd be better to trim out the completely unnecessary bits. That's an awful lot of (bloated) HTML and javascript to wade through.

« previous php.general (#279620) next »