Hallo
ich hab ein Problem. Ich hab in vielen Foren schon gelesen, wie man PHP in HTML einbindet und es ausprobiert.
Ich habe den Verweis auf die PHP in meiner Navigationsleiste meiner Homepage eingebunden, doch anstatt der Seite zeigt mir der Browser lediglich den Quellcode an:
<?php
include("pw.html");
if (isset($_POST['pw'])) {
$pw = $_POST['pw'];
if ($pw == "pw1") {
?>
<?php
} elseif ($pw == "pw2") {
?>
<?php
} else {
?>
<?php
}
}
?>
Code meiner Navigationsleiste(Frame):
<html>
<style type="text/css" media="screen">
#ÜB { font-size:50px; font-family:"oktober",Arial,sans-serif; color:#fff; }
#Text{font-size:20px; font-family:"oktober",Arial,sans-serif; color:#fff;}
#Videos{font-size:40px; font-family:"oktober",Arial,sans-serif; color:#fff;}
</style>
<title>Jans Homepage</title>
<body bgcolor="#000000" text="#FFFFFF">
<br>
<h1><p align="left"><img src="navigation.jpg" /></p></h1>
<br>
<p align ="center">
<a href="home.html" target="Daten"> <img src="home.jpg" width="130" heigth="50" border="0" alt="HOME"></a><br>
<a href="projekte.html" target="Daten"> <img src="projekte.jpg" width="130" heigth="50" border="0" alt="Projekte"></a><br>
<a href="links.html" target="Daten"> <img src="links.jpg" width="130" heigth="50" border="0" alt="Links"></a><br>
<a href="bilder.html" target="Daten"> <img src="bilder.jpg" width="130" heigth="50" border="0" alt="Bilder"></a><br>
<a href="downloads.html" target="Daten"> <img src="download.jpg" width="130" heigth="50" border="0" alt="Downloads"></a><br>
<a href="videos.html" target="Daten"> <img src="videos.jpg" width="130" heigth="50" border="0" alt="Forum"></a><br><br />
<p align="center">
<a href="blog.html" target="Daten"> <img src="blog.jpg" width="130" heigth="50" border="0" alt="Blog"></a><br>
<a href="fun.html" target="Daten"> <img src="fun.jpg" width="130" heigth="50" border="0" alt="Fun"></a><br>
<a href="http://639628.guestbook.onetwomax.de/" target="Daten"><img src="guest.jpg" width="130" heigth="50" border="0" alt="guest"></a><br />
<a href="http://bhdv.codersbase.net" target="Daten"><img src="bhdv.jpg" width="130" heigth="50" border="0" alt="BHDV"></a><br />
<a href="pw.php" target="Daten">PHP</a><br>
</p>
</body>
</html>
(ja, ich weiß, nich alles so professionell, bitte ignorieren :D)
Hat jemand eine Ahung wieso es nicht funktioniert? Muss ich die Navigationsleiste in PHP 'umwandeln'??
Danke