PHP Fehler

Kategorien: PHP & MySQL
3 Antworten
Pharmazo
Pharmazo am Mittwoch, 6. Juli 2005 um 13:25
Also hab ne frage... coaster.co.funpic.de/aaaaa/home2.php wenn man links in der navi was anklickt, wieso öffnet sich dann immer die navi im hauptframe??? code von navi.php: <body> <center> <div align="left"> <i><b><main></b></i><br> <a href="?section=frame" target="framechen">Startseite</a><br> <a href="?section=guestbook" target="framechen">G&auml;stebuch</a><br> <a href="?section=wbb" target="framechen">Forum</a><br> <a href="?section=kontakt" target="framechen">Kontakt</a><br> <a href="?section=about" target="framechen">About us</a><br> <a href="?section=impressum" target="framechen">Impressum</a><br> </div> <div align="left"> <i><b><content></b></i><br> <a href="?section=filebase" target="framechen">Downloads</a><br> <a href="?section=tutorials" target="framechen">Tutorials</a><br> <a href="?section=walls" target="framechen">Wallpapers</a><br> <a href="?section=temps" target="framechen">Templates</a><br> <a href="?section=awards" target="framechen">Awards</a><br> <a href="?section=links" target="framechen">Linkage</a><br> <div align="left"> <i><b><counter></b></i><br><a href="http://www.domain.co.uk" target="_top"><img src="http://www.bluenetdesign.de/cgi-bin/counter.pl?member=1120490770" border=0 alt="Domain Name"></a> </div></center> </body> (teil) von home2.php: <html> <head> <title>dess</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- a{font-size:8pt;text-decoration:none;font-weight:normal;} a:link { text-decoration:none; font-weight:normal; color:#804040; } a:visited { text-decoration:none; font-weight:normal; color:#804040; } a:hover { text-decoration:none; font-weight:normal; color:#FF8080;} a:active { text-decoration:none; font-weight:normal; color:#FF8080;}BODY {background-color:#000000;font-family:Verdana;font-weight:normal; font-size: 8pt;color:#FF8080;} --> </style> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <!-- ImageReady Slices (dess.psd) --> <table id="Tabelle_01" width="801" height="601" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="10"> <img src="Bilder/home2_01.gif" width="800" height="33" alt=""></td> <td> <img src="Bilder/spacer.gif" width="1" height="33" alt=""></td> </tr> <tr> <td colspan="5"> <img src="Bilder/home2_02.gif" width="313" height="96" alt=""></td> <td colspan="3" rowspan="2"> <img src="Bilder/home2_03.gif" width="454" height="114" alt=""></td> <td colspan="2" rowspan="8"> <img src="Bilder/home2_04.gif" width="33" height="527" alt=""></td> <td> <img src="Bilder/spacer.gif" width="1" height="96" alt=""></td> </tr> <tr> <td rowspan="9"> <img src="Bilder/home2_05.gif" width="69" height="471" alt=""></td> <td colspan="3"> <img src="Bilder/home2_06.gif" width="152" height="18" alt=""></td> <td rowspan="9"> <img src="Bilder/home2_07.gif" width="92" height="471" alt=""></td> <td> <img src="Bilder/spacer.gif" width="1" height="18" alt=""></td> </tr> <tr> <td colspan="3"> <img src="Bilder/home2_08.gif" width="152" height="6" alt=""></td> <td colspan="3"> <img src="Bilder/home2_09.gif" width="454" height="6" alt=""></td> <td> <img src="Bilder/spacer.gif" width="1" height="6" alt=""></td> </tr> <tr> <td rowspan="2"> <img src="Bilder/home2_10.gif" width="4" height="251" alt=""></td> <td> <IFRAME src="inc/navi.php" width="144" height="246" alt="" frameborder="0"></IFRAME></td> <td rowspan="2"> <img src="Bilder/home2_12.gif" width="4" height="251" alt=""></td> <td rowspan="5"> <img src="Bilder/home2_13.gif" width="6" height="407" alt=""></td> <td rowspan="4"> <IFRAME src="inc/frame.php" name="framechen" width="441" height="401" alt="" frameborder="0"></IFRAME></td> <td rowspan="5"> <img src="Bilder/home2_15.gif" width="7" height="407" alt=""></td> <td> <img src="Bilder/spacer.gif" width="1" height="246" alt=""></td> </tr> <tr> <td> <img src="Bilder/home2_16.gif" width="144" height="5" alt=""></td> <td> <img src="Bilder/spacer.gif" width="1" height="5" alt=""></td> </tr> <tr> <td colspan="3"> <img src="Bilder/home2_17.gif" width="152" height="16" alt=""></td> <td> <img src="Bilder/spacer.gif" width="1" height="16" alt=""></td> </tr> <tr> <td colspan="3" rowspan="4"> <img src="Bilder/home2_18.gif" width="152" height="180" alt=""></td> <td> <img src="Bilder/spacer.gif" width="1" height="134" alt=""></td> </tr> <tr> <td> <img src="Bilder/home2_19.gif" width="441" height="6" alt=""></td> <td> <img src="Bilder/spacer.gif" width="1" height="6" alt=""></td> </tr> <tr> <td colspan="4"> <img src="Bilder/home2_20.gif" width="456" height="18" alt=""></td> <td rowspan="2"> <img src="Bilder/home2_21.gif" width="31" height="40" alt=""></td> <td> <img src="Bilder/spacer.gif" width="1" height="18" alt=""></td> </tr> <tr> <td colspan="4"> <img src="Bilder/home2_22.gif" width="456" height="22" alt=""></td> <td> <img src="Bilder/spacer.gif" width="1" height="22" alt=""></td> </tr> <tr> <td> <img src="Bilder/spacer.gif" width="69" height="1" alt=""></td> <td> <img src="Bilder/spacer.gif" width="4" height="1" alt=""></td> <td> <img src="Bilder/spacer.gif" width="144" height="1" alt=""></td> <td> <img src="Bilder/spacer.gif" width="4" height="1" alt=""></td> <td> <img src="Bilder/spacer.gif" width="92" height="1" alt=""></td> <td> <img src="Bilder/spacer.gif" width="6" height="1" alt=""></td> <td> <img src="Bilder/spacer.gif" width="441" height="1" alt=""></td> <td> <img src="Bilder/spacer.gif" width="7" height="1" alt=""></td> <td> <img src="Bilder/spacer.gif" width="2" height="1" alt=""></td> <td> <img src="Bilder/spacer.gif" width="31" height="1" alt=""></td> <td></td> </tr> </table> <!-- End ImageReady Slices --> </body> </html> von test.php (damit--> www.de.de?section=aaa) ja das soll sich im frame.php öffnen!also bitte helft mir!<? if ($_GET['section'] != "") { if (!file_exists("inc/".$_GET['section'].".php")) { $szSection = "home2.php"; } else { include("inc/".$_GET['section'].".php"); } } else { $szSection = "home2.php"; if (!empty($_GET['section'])) { include('inc/error.php'); } else { header("Location: ".$PHP_SELF."?section=".$szSection); } } ?>

Kommentare

invisible.kid
invisible.kid am Mittwoch, 6. Juli 2005 um 16:00

Ganz einfach... du rufst ja schließlich die navi.php im Frame auf ^^

-->
coaster.co.funpic.de/aaaaa/inc/navi.php?section=wbb

Das hier:
<a href="?section=frame" target="framechen">Startseite</a><br>

müsste z.B. so heißen:

<a href="seite.php?section=frame" target="framechen">Startseite</a><br>


Gruß

cruz
cruz am Mittwoch, 6. Juli 2005 um 23:52

thread hat rein gar nix mit webstylez zu tun .. bitte künftig ins richtige board!

Pharmazo
Pharmazo am Donnerstag, 7. Juli 2005 um 17:31

hmm danke habs jetzt ohne das script gemacht :) nur in html ;)