Jump to content

Validation issue with php generated code


son

Recommended Posts

The validator thinks you have a <p> element inside the <script> element. Put your code between CDATA tags to see if it gets solved:

<script type="text/javascript">//<![CDATA[<?php echo "document.write('<p id=\"slidesHint\">Info Text</p>')"; ?>//]]></script>

Why are you using document.write if PHP can write the code directly for you?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...