Page 1 of 1

img change to comments problem

Posted: Mon Jun 23, 2003 8:39 am
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.

Posted: Mon Jun 23, 2003 8:43 am
by volka
where(application) do you see this?

Posted: Mon Jun 23, 2003 8:46 am
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.

Posted: Mon Jun 23, 2003 8:52 am
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>