Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- echo back javascript problem


matthewamzn - 7:07 pm on Oct 15, 2007 (gmt 0)


I'm trying to echo a javascript. I think I've commented out everything, but it's causing errors. Is there a better way to do this?

echo "<script type=\"text/javascript\" src=\"<a href=\"http://www.______.com/external.php?type=js\"></script>
<script language=\"\" type=\"text/javascript\">
<!--
for (var x in discussions)
{
document.writeln(\"<a href=\"http://www._______.com/showdiscussion.php?t=\"+discussion[x].discussionid+\"\">\"+discussion[x].title+\"</a> (Posted By: \"+discussion[x].poster+\")<br />\");
}
//-->
</script>";


Thread source:: http://www.webmasterworld.com/php/3478139.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com