Jump to content

Recommended Posts

I am adding some php include stuff into tables and for some reason when i click back to design view everything is messed up and it throws an error. i am working directly off an ftp server and i am not using a template. to create new files i just right click int he file manager and make a new php file.


the error goes something like this: "making this change would require changing code that is locked"


Ive searched around but I cant find a simple answer to my problem. What is the simplest way to fix this problem?


Here is my code if it is any help:

[code]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="global/main.css" rel="stylesheet" type="text/css">
</head>

<body>
<?php
    $page = $_GET['page'];
?>
<table width="790" border="0" cellspacing="0" cellpadding="5" align="center">
  <tr>
    <td>
    sadf
    <?php require('header_footer/header.php'); ?>
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>
        <?php
        //file that has page links
        include('global/pages.php');            
        ?>
    content
    </td>
  </tr>
  <tr>
    <td>
    footer asdf
    </td>
  </tr>
</table>
</body>
</html>
[/code]

Here is was the design view looks like after the error has been thrown. ahhh how do i fix this?

[a href=\"http://img395.imageshack.us/img395/6555/untitled16qt.jpg\" target=\"_blank\"]http://img395.imageshack.us/img395/6555/untitled16qt.jpg[/a]

When i try to deletethe php code out of the table area..it gives me the error to. here is the error screenshot.



[a href=\"http://img446.imageshack.us/img446/7210/untitled11oi.jpg\" target=\"_blank\"]http://img446.imageshack.us/img446/7210/untitled11oi.jpg[/a]


help........... :(
Link to comment
https://forums.phpfreaks.com/topic/6705-locked-code/
Share on other sites

Then upgrade to DW8. Valid XHTML and PHP formatting. Isn't that expensive either. Besides, some people just don't have the time or want to learn an entire language.
Besides, this is the Dreamweaver Help forums. If your help is to say "get rid of Dreamweaver" then please, find another forum for it. If you want to help people fix their problems with Dreamweaver, then please do so. Not to insult you or start an argument or anything, just saying what I think.

As for the locked code, again, just putting the whole thing into a brand-new page should do the trick.
Link to comment
https://forums.phpfreaks.com/topic/6705-locked-code/#findComment-24595
Share on other sites

Sorry about that, didn't notice the dreamweaver help bit. I use the RSS feed and just look at the message title most times. I still say for this particular problem you can just as easily open the xhtml file in notepad insert the php and name it with php extension and be done, but I am biased against dreamweaver and all other WYSIWYG editors because I have yet to find one that formatted xhtml the way I want it done. I am very particular about my code.
Link to comment
https://forums.phpfreaks.com/topic/6705-locked-code/#findComment-24611
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.