Problem mam następujacy. Chcę zrobić aby w srodkowej czesci strony otwierała sie strona *.php z jakiego katalogu. Konkretnie chodzi mi o to zeby sie w srodkowej czesci otwierała strona index.php znajdujaca sie w katalogu ksiega/index.php ( będąca cześcią ksiegi gości). I w praktyce wyglada to tak :
index.php
Kod
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-2">
<meta http-equiv="Content-Language" content="pl">
<meta http-equiv="Reply-to" content="changs@wp.pl">
<meta name="Author" content="Bartek "Changs" Pranczke">
<title>Szablon php</title>
</head>
<body>
<table border="1" width="100%" height="358" bordercolor="#000000" cellspacing="0" cellpadding="0">
<tr>
<td width="19%" height="33" valign="top" align="left"></td>
<td width="81%" height="34" valign="top" align="left"></td>
</tr>
<tr>
<td width="19%" height="321" valign="top" align="left" rowspan="2">
<p align="center"><a href="index.php">strona główna</a><br>
<a href="index.php?go=1">strona1.html</a><br>
<a href="index.php?go=2">strona2.html</a><br>
<a href="ksiega/index.php">ksiega w nowym oknie działajaca.txt</a><br>
<a href="index.php?go=4">ksiega w srodku nie działajaca.txt</a><br>
<a href="index.php?go=5">Zakończenie</a></td>
<td width="81%" height="302" valign="top" align="left">
<table border="0" width="100%" height="299" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="293" valign="top" align="left"><?
if(!isset($go)){
include("newsy.html");
}
else if($go==1){
include("strona_1.html");
} else if($go==2){
include("strona_2.html");
} else if($go==3){
include("strona_3.txt");
} else if($go==4){
include("strona_4.txt");
} else if($go==5){
include("strona_5.txt");
} else
echo "Wpisz komentarz keżeli strona nie istnieje ";
?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="81%" height="17" valign="top" align="left">
</table>
</body>
</html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-2">
<meta http-equiv="Content-Language" content="pl">
<meta http-equiv="Reply-to" content="changs@wp.pl">
<meta name="Author" content="Bartek "Changs" Pranczke">
<title>Szablon php</title>
</head>
<body>
<table border="1" width="100%" height="358" bordercolor="#000000" cellspacing="0" cellpadding="0">
<tr>
<td width="19%" height="33" valign="top" align="left"></td>
<td width="81%" height="34" valign="top" align="left"></td>
</tr>
<tr>
<td width="19%" height="321" valign="top" align="left" rowspan="2">
<p align="center"><a href="index.php">strona główna</a><br>
<a href="index.php?go=1">strona1.html</a><br>
<a href="index.php?go=2">strona2.html</a><br>
<a href="ksiega/index.php">ksiega w nowym oknie działajaca.txt</a><br>
<a href="index.php?go=4">ksiega w srodku nie działajaca.txt</a><br>
<a href="index.php?go=5">Zakończenie</a></td>
<td width="81%" height="302" valign="top" align="left">
<table border="0" width="100%" height="299" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="293" valign="top" align="left"><?
if(!isset($go)){
include("newsy.html");
}
else if($go==1){
include("strona_1.html");
} else if($go==2){
include("strona_2.html");
} else if($go==3){
include("strona_3.txt");
} else if($go==4){
include("strona_4.txt");
} else if($go==5){
include("strona_5.txt");
} else
echo "Wpisz komentarz keżeli strona nie istnieje ";
?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="81%" height="17" valign="top" align="left">
</table>
</body>
</html>
strona_4.txt
[php:1:5cb3ebcde2] <? include "ksiega/index.php" ?> [/php:1:5cb3ebcde2]
I teraz po nacisnieciu na link: "ksiega w nowym oknie działajaca" otwiera sie ksiega w nowym oknie i wszystko działa tak jak powinno.
Natomiast po naciśnieciu na link :"ksiega w srodku nie działajaca" otwiera sie w srodku ale wyskakują jakieś błedy.
I tak jest z każdym pilikiem *.php któy znajduje sie w innym katalogu.
tutaj to mozna zobaczyc http://www.vgrils.prv.pl
Dzięx za zainteresowanie.