View Single Post
  #3 (permalink)  
Old Aug 31st, 2006, 14:32
harv harv is offline
New Member
Join Date: Aug 2006
Location: lancashire
Age: 34
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: using a div like a frame to display other web pages

hi,

ive never used php before but just had a quick try and looked around for more info on it.

tried your code and found a site with simple php coding and I cant get this to work. it displays all other text in the htm but does not seem to look up the php code

here is my example htm:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>This is my page!</title>
</head>
<body>
HTML code... <? include("nav.inc"); ?> ...HTML code...
</body>
</html>

here are my nav.inc file contents:
<table class="nav">
<tr>
<td><a href="/" title="Home page">Home</a></td>
<td><a href="/computers/" title="Everything about computers">Computers</a></td>
...
<td><a href="/recipes/" title="My favorite recipes">Recipes</a></td>
</tr>
</table>

Ive tried viewing this in both ie and firefox, am I missing something simple?
Reply With Quote