Jump to content


php menu error

  • Please log in to reply
2 replies to this topic

#1 leeutalkin2me

  • Members
  • PipPip
  • Member
  • 12 posts

Posted 17 April 2006 - 07:44 PM

I have this page
[a href=\"http://www.troublefreetraveladvisor.com/websitedel.php\" target=\"_blank\"]http://www.troublefreetraveladvisor.com/websitedel.php[/a]

It opens up and displays good in Firefox & IE.

But for some reason, in dreamweaver(what i used to edit code etc) its display its not the same as when uploaded.

I use two Menu's and use Include to add them to my pages
left menu - menu.inc
right menu - menu2.inc

If i change menu2.inc to menu.inc it displays the entire site fine, i solved this earlier today but i must have undone something and its come backagain.

<div id="menu">
     <?php include("menu.inc"); ?>


    <div id="right"><br />
<?php include("menu2.inc"); ?>

</div><br />

The last closed Div command is highlighted in red and on my page in Design view have - untitled document </head> in yellow highlight, but none of it on the uploaded page where it all looks perfect lol

Can anyone explain this ?

#2 wildteen88

  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 17 April 2006 - 09:26 PM

Don't rely on the Design View feature in Dreamweaver when developing in PHP. Dreamweaver doesn't understand what PHP is so it wont process your menu code, only the raw HTML. This is why DW screws up how a page looks in Design View.

You should always check how your site looks in web browser. Don't test it in for example just IE. Test it in FireFox and Opera to see if your site design is compatiable with most modern browsers.

#3 leeutalkin2me

  • Members
  • PipPip
  • Member
  • 12 posts

Posted 17 April 2006 - 09:30 PM

yes each time i progress with my site i check it in firefox and IE to start with to make sure they are identical

Only been using dreamweaver to put bits of code in.

Can i not fix that problem that dreamweaver shows me then?

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users