Skip to main content
August 1, 2009
Question

CS4 does not display form in Design view if PHP code exists.

  • August 1, 2009
  • 1 reply
  • 775 views

It appears that whenever I insert PHP code on a page with CS4, design view only displays the PHP symbol on the screen and nothing below it.  Everything worked fine in DW8.  The only way now to view the page is to upload it and browse to it.  Live view requires a testing server which I do not want to implement.  Any suggestions?

This topic has been closed for replies.

1 reply

David_Powers
Inspiring
August 2, 2009

It appears that whenever I insert PHP code on a page with CS4, design view only displays the PHP symbol on the screen and nothing below it.  Everything worked fine in DW8.

Without knowing what sort of code you're inserting, I can only guess what the problem is. But the fact that it worked fine in DW8 suggests that you're using include files. An include file should contain only snippets of code. It should not contain a DOCTYPE declaration and duplicate <head> and <body> tags. When the original file and its includes are put together, they should make up a single page with one DOCTYPE declaration, one pair of <html> tags, one <head> and one <body>.

DW8 still displayed the content of include files even if they broke this rule. CS4 is stricter. If the code is invalid, it's not displayed.

Participant
February 25, 2010

Hi,

I am having a similar problem, we just built a new site, and had a programmer build a php / mysql program to insert table data into the page.

All displays correctly in live view, and online, just not in design view, which is imperative for the office personal to be able to edit the pages.

any suggestions..

Here is the page: http://209.188.91.107/tour1/