![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 13 Pomógł: 0 Dołączył: 5.03.2007 Ostrzeżenie: (10%) ![]() ![]() |
Cześć.
Mam następującą sprawę. Ponizej przedstawiam kod swojego indexu glownego. W tym przypadku część lewa mojego serwisu <A HREF="index1.php?id=0">aktualnosci</A><BR> <A HREF="index.php?id=1">linki</A><BR> <A HREF="index.php?id=2">chat</A><BR> <A HREF="index.php?id=3#newsy">news</A><BR> <A HREF="index.php?id=4#autor">news</A><BR> wczytuje sie do srodka serwisu za pomoca kodu php tak aby uniknac neichcianych ramek <? $where = $HTTP_GET_VARS['id']; $allowed_values = array ( "0" => "aktualnosci.txt", "1" => "linki.txt", "2" => "chat.txt", "3" => "news.txt", "4" => "autor.txt", ); if($allowed_values[$where] !='') { include("$allowed_values[$where]"); } else { include("glowna.txt"); } ?> Problem jest w tym ze wczytuja sie tylko pliki tekstowe html chyba tez, a jak zrobic zeby mogly sie wczytywać strony podane za pomoca linku np. www.wp.pl. [php] <?php $add_site = true; ?> <html> <head> <title>www1</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1250" /> <style type="text/css"> <!-- #Table_01 { position:absolute; left:0px; top:0px; width:770px; height:950px; } #id1 { position:absolute; left:0px; top:0px; width:770px; height:312px; } #id2 { position:absolute; left:0px; top:312px; width:204px; height:592px; } #id3 { position:absolute; left:204px; top:312px; width:8px; height:638px; } #id4 { position:absolute; left:212px; top:312px; width:543px; height:579px; } #id5 { position:absolute; left:755px; top:312px; width:15px; height:638px; } #id6 { position:absolute; left:212px; top:891px; width:543px; height:59px; } #id7 { position:absolute; left:0px; top:904px; width:204px; height:46px; } --> </style> </head> <body style="background-color:#FFFFFF;"> <div id="Table_01"> <div id="id1"> <img src="images/1.jpg" width=770 height=312 /> </div> <div id="id2"> <A HREF="index1.php?id=0">aktualnosci</A><BR> <A HREF="index.php?id=1">linki</A><BR> <A HREF="index.php?id=2">chat</A><BR> <A HREF="index.php?id=3#newsy">news</A><BR> <A HREF="index.php?id=4#autor">news</A><BR> </div> <div id="id3"> <img src="images/3.jpg" width=8 height=638 /> </div> <div id="id4"> <? $where = $HTTP_GET_VARS['id']; $allowed_values = array ( "0" => "aktualnosci.txt", "1" => "linki.txt", "2" => "chat.txt", "3" => "news.txt", "4" => "autor.txt", ); if($allowed_values[$where] !='') { include("$allowed_values[$where]"); } else { include("glowna.txt"); } ?> </div> </body> </html> Ten post edytował marbor 5.03.2007, 10:08:08 |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 19.07.2025 - 12:40 |