October 14, 200817 yr Hi, Just coded the following page in CSS but getting warnings when testing the specific errors are - <img> discarding newline in URI reference I can see that this is caused by a RETURN or newline in the code - the page is dynamically generated - here is the section that shows the error - </form></td></tr><tr align='center' valign='middle'> <td align='center'><img src='products/canon _s.gif' alt='Canon'> </td> So at the end of line 2 you can see the URL is broken over to the newline .... here is the chunk of code that is producing same - $strTable = $strTable . "<tr align='center' valign='middle'>\n"."<td align='center'>$strManufacturerNameLogo</td>\n"."<td align='center' valign='middle'>".($strManufacturerName)." " . $strProductType . "</td>\n"."<td align='left' valign='middle'>"; Can anyone tell me why this is causing the warnings that I am getting please. The page that refers (if you want to look at the code) is - Inkjet Cartridge selector
October 14, 200817 yr It looks like something elsewhere in a script might be causing this. Can you find any references to where the image tag is being written? Try searching your script files for $strManufacturerNameLogo to see if you can spot anything. Alternatively try renaming your image file to canon-s.gif or canonsmall.gif as something might be breaking underscores.
Create an account or sign in to comment