Click to See Complete Forum and Search --> : Updating templates


piersk
05-27-2003, 05:02 PM
I have started using Dreamweaver MX (I have to as part of my job and so I thought I'd give it a go) and I'm using templates to help me.

However, when I try to edit my template, save it and update all the files based on the template, I get the following error message:

There is an error at line 53, column 11 (absolute position 1164) of "D:\diablog\register2.php": Duplicae editable regions of name "Document head".

Can anyone shed any light on what this means and also is there any way to remedy it.

The code looks like this:
if($number==1)
{
?>
<html>
<head>
<script language="JavaScript">
alert('That email address has already been registered. Please use another one.');
</script>
<meta http-equiv="refresh" content="0,register.php">
</head>
</html>
<?php
exit;
}


Line 53 is the </head>.

mzanimephp
05-28-2003, 04:07 PM
(Dreamweaver is saying that you have two editable regions, which are named exactly the same thing. A Dreamweaver Template ".dwt" file usually has editable regions in it, but no two can ever be the same on a page.)

Well the page you have shown doesn't appear to be a template file... so I'm guessing that DWMX is just choking on your PHP for some reason. Can you upload the file or something?

Also, check the source code, and if you notice the code-colors seem to suddenly change at a certain point in the page from then on down, that would be the cause for the error.

Note: <?php ?> tags are always red though.