HelloI am having problems with a simple calendar function. The code works alright, but when i run it trough the validation, witch i try to make my whole site stand up against, i get an error, can't really figure the solution. This is a partial code witch works, but as said don't validate, any got a solution?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><html lang="da"><head><title>Some Title</title><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></head><body><script type="text/javascript"> var idx = 3; var idy = 0;</script><table> <script type="text/javascript"> if((idy % idx) == 0){ dokment.write("<tr>"); ++idy } </script> <td> <script type="text/javascript"> <!-- get content for each mont from db, repeat until 1 year is shown--> </script> </td> <script type="text/javascript"> if((idy % idx) == 0){ dokument.write("<\/tr>"); } </script></table></body></html>
This make a 3 by 4 calendar trough a php function, the comment inside the td tag, and as said works flawless, don't validate though. There are a bunch more in this, but these few lines sums it up i think.Anders