TheIceman5
August 18th, 2002, 07:40 AM
ive written up a cgi script that will print a few lines of html on a page and suppose to show an image. what it does is change the html around and im ****ed if i know why.
This is what the html is suppose to look like on the page.
<a href="popup.cgi?image=2&id=test" onMouseOver="MM_displayStatusMsg('Click to Enlarge Photo');return document.MM_returnValue"><img src="../adimages/test_2_tn.jpg" width=175 height=106 border=0></a><br>
what it looks like after the cgi script has printed it on a page is
<a href="popup.cgi?image=2&id=test" onMouseOver="MM_displayStatusMsg('Click to Enlarge Photo');return document.MM_returnValue"><!-- src="../adimages/test_2_tn.jpg" width=175 height=106 border--></a><br>
Note the <img src= tag, the img part is replaced with !-- for some **** knows reason. also at the closing tag there is now a -- added there and the =0 at the end of 'border' is missing.
So when its on a page it doesnt display any image of any sort.
Anyone know how to fix this cause ivce played with it for hours and gotten no where.
also in the cgi script im using the print q~ ~; to print the html so it reads
print q~<a href="popup.cgi?image=2&id=test" onMouseOver="MM_displayStatusMsg('Click to Enlarge Photo');return document.MM_returnValue"><img src="../adimages/test_2_tn.jpg" width=175 height=106 border=0></a><br>~;
This is what the html is suppose to look like on the page.
<a href="popup.cgi?image=2&id=test" onMouseOver="MM_displayStatusMsg('Click to Enlarge Photo');return document.MM_returnValue"><img src="../adimages/test_2_tn.jpg" width=175 height=106 border=0></a><br>
what it looks like after the cgi script has printed it on a page is
<a href="popup.cgi?image=2&id=test" onMouseOver="MM_displayStatusMsg('Click to Enlarge Photo');return document.MM_returnValue"><!-- src="../adimages/test_2_tn.jpg" width=175 height=106 border--></a><br>
Note the <img src= tag, the img part is replaced with !-- for some **** knows reason. also at the closing tag there is now a -- added there and the =0 at the end of 'border' is missing.
So when its on a page it doesnt display any image of any sort.
Anyone know how to fix this cause ivce played with it for hours and gotten no where.
also in the cgi script im using the print q~ ~; to print the html so it reads
print q~<a href="popup.cgi?image=2&id=test" onMouseOver="MM_displayStatusMsg('Click to Enlarge Photo');return document.MM_returnValue"><img src="../adimages/test_2_tn.jpg" width=175 height=106 border=0></a><br>~;