To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Tools > Dreamweaver

Dreamweaver In need of help with Dreamweaver?

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-27-2003, 05:02 PM   #1
piersk
Moderator
 
Join Date: Aug 2002
Location: Guildford, UK
Posts: 4,279
Updating templates

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:
PHP Code:
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>.

Last edited by piersk; 05-27-2003 at 05:05 PM.
piersk is offline   Reply With Quote
Old 05-28-2003, 04:07 PM   #2
mzanimephp
genki ni shitemashitayo
 
mzanimephp's Avatar
 
Join Date: Dec 2002
Location: California
Posts: 274
(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.
__________________
Scripting PHP, one line at a time | My web site

Last edited by mzanimephp; 05-28-2003 at 04:18 PM.
mzanimephp is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 03:20 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.