I have code that retrieves data from a mysql DB. The value retrieved is passed to another page. The link text is also the value retrieved from the DB.
Here is the code snippet:
<td><a href="WelcomeBack.php?WelcomeName=<?php echo $row['Welcome_Name']; ?>"><?php echo $row['Welcome_Name']; ?></a></td>
<td><?php echo $row['Welcome_Desc']; ?> </td>
<?php endwhile; ?>
This code appears to work correctly. The problem is that it doesn't validate using XHTML Strict 1.0. I'm getting multiple errors, such as :
XML Parsing Error: Unescaped '<' not allowed in attributes values
XML Parsing Error: attributes construct error
How can I code the above to meet XHTML strict compliance?