Hi everybody,
function open_form($path) {
echo <<<EOT
<script language="javascript" type="text/javascript">
function textCounter(field, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
}
</script>
<form method="post" action="$path" enctype="multipart/form-data">
EOT;
}
line from 320 to 331
I delete the line </script>
The code color looks like perfect in Dreamweaver. The code color looks like not right in Dreamweaver if there is the line </script>.
Please check the attached two pictures and you will know what I said.
My question is that Can I delete the line </script>?
Yours sincerely
Jian Zhan
No. Syntax highlighting means nothing.
Dreamweaver has some Syntax highlighting problem with HEREDOC coding
Don't use a WYSIWYG editor like Dreamweaver to edit Coppermine files unles you really, really know your way around. Use a plain-text editor instead.