Jeg har problemer med at include DRBGuestbook til mit eget setup. Jeg mister hele tiden det lille billede med kontrol-koden i.
Jeg har en php side med lidt html og css, deri laver jeg en include til deres index.php, men kontrol-koden forsvinder hele tiden. Hvis jeg loader index.php direkte i browseren så fungere det korrekt.
Hvad gør jeg forkert? Skal jeg ikke lave en include?
Hvis viser kildekoden til min side inkl. include til deres får jeg dette ->
<!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" xml:lang="en" lang="en">
<head>
<title>Temperatur-logger</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<style type="text/css" media="screen">@import "basic.css";</style>
<style type="text/css" media="screen">@import "tabs.css";</style>
<style type="text/css" media="screen">@import "guestbook/template/default/styles.css";</style>
</head>
<body>
<h1></h1>
<div id="header">
<ul id="primary">
<li><a href="index.php">Forside</a></li>
<li><a href="software.php">Software</a></li>
<li><a href="hardware.php">Hardware</a></li>
<li><span>Gæstebog</span></li>
<li><a href="stats.php">Statistik</a></li>
</ul>
</div>
<div id="main">
<div id="contents">
<h2>Gæstebog</h2>
<br><br>
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="./template/default/styles.css" rel="stylesheet" type="text/css" />
<title>Guestbook</title>
</head>
<body>
<h1>Guestbook</h1>
<form method="post" action="index.php">
<fieldset>
<legend>Sign Guestbook</legend>
<p>
<label for="name">Name:</label>
<input type="text" name="name" id="name" maxlength="128" class="inputText" />
<br />
<label for="email">E-Mail Address:</label>
<input type="text" name="email" id="email" maxlength="256" class="inputText" />
<br />
<label for="url">Website URL:</label>
<input type="text" name="url" id="url" maxlength="512" class="inputText" />
<br />
<label for="comments">Comments:</label>
<textarea name="comments" id="comments" cols="40" rows="4" class="inputTextArea">
</textarea>
<br />
<label for="electricsheep">Enter Code:</label>
<input type="text" name="electricsheep" id="electricsheep" maxlength="5" size="5" class="inputText" />
<img src="index.php?action=challengeimage" alt="Challenge Image" class="challengeImage" />
<br />
</p>
<input type="hidden" name="action" value="add" class="submit" />
<input type="submit" value="Add" class="submit" />
</fieldset>
</form>
<h2>Current Entries</h2>
<p class="entryCount">
Viewing entries 0 through 0
(Total entries: 0)
</p>
<div class="credit">Powered by DRBGuestbook · <a href="http://www.dbscripts.net/hosting/">PHP Hosting</a> · <a href="http://www.dbscripts.net/guestbook/">PHP Guestbook</a></div>
<div class="navigation">
</div>
</body>
</html>
</div>
</div>
</body>
<br><br>
<!--<center>
<table style="border: 1px solid #000000; border-collapse: collapse;"><tr><td style="text-align: center; background-color: #FFFFFF; border-bottom: 1px solid #000000;"><b><h2>Powered by:</h2><br>
<a href='http://debian.org/'><img src='/pictures/debian.png'/>
<a href='http://apache.org/'><img src='/pictures/apache_logo.png'/>
<a href='http://oss.oetiker.ch/rrdtool/'><img src='/pictures/rrdtool_logo.png'/>
<a href='http://digitemp.org/'><img src='/pictures/digitemp.jpg'/>
</b></td></tr></center>
-->
</html>
Da kan jeg umiddelbart se noget som ikke stemmer, da der er to <html>, to <head> og to <body>
Hvor ligger mit problem?
Min side er desværre ikke oppe at køre endnu, så det kan ikke ses live.