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.
img change to comments problem
Moderator: General Moderators
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
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>