img change to comments problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Surferboy
Forum Newbie
Posts: 2
Joined: Mon Jun 23, 2003 8:39 am

img change to comments problem

Post by Surferboy »

Hi, I have this code in php
<img src="picture.gif"><img src="picture2.gif">

When I viewed the source code, this becomes like this,
<!-- src="picture.gif--><img src="picture2.gif">

The img for picture.gif becomes a comment. Whats wrong? Please advise. Thank you.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

where(application) do you see this?
Surferboy
Forum Newbie
Posts: 2
Joined: Mon Jun 23, 2003 8:39 am

Post by Surferboy »

When using window 2000 pro japanese version, there will be this error. However, when viewing the webpage using other operating system, it is alright.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

you're not viewing html with window 2000 pro. ;)
Do you mean the internet explorer (->view source) ?

edit: does this also happen if you create a valid html-document?
something like

Code: Select all

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
           "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"
>
<html>
	<head><title>img test</title></head>
	<body>
		<p>
			<img src="picture.gif" alt="picture 1" />
			<img src="picture2.gif" alt="picture 2" /> 
		</p>
	</body>
</html>
Post Reply