PHP Forum

PHP Forum (http://www.selfphp.de/forum/index.php)
-   PHP für Fortgeschrittene und Experten (http://www.selfphp.de/forum/forumdisplay.php?f=13)
-   -   $_get verlinkung (http://www.selfphp.de/forum/showthread.php?t=19061)

Chris_M 05.04.2008 18:49:40

$_get verlinkung
 
hallo

ich habe mich mal aus neugier in ein php Tutorial gearbeitet und hab ein naren dran gefressen :)

nur komm ich atm mit weiter

ich hab meine page so wie im Tutorial aufgebaut (http://tut.php-quake.net/frames.html#u3) nur das ich die banner und die navi divs fixiert hab.

das mit der verlinkung in der Inhalt.php hab ich verstanden soweit sogut
nur jetzt hab ich ein formular mit $_get ausgabe was auf eine andere seite geschickt wird aber nu läd er die seite nicht mehr im div vom inhalt.php sondern baut eine neue seite auf.

wie muss ich das in der inhalt.php bzw config.php verlinken das es wieder im div geladen wird

ich hoffe ihr könnt mir da helfen

mfg

Chris_M 05.04.2008 22:15:16

AW: $_get verlinkung
 
nabend

ich hab selbst eine lösung gefunden google sei dank

ich hab jetzt den inhalt von der inhalt.php in :

PHP-Code:

<?php   
if(empty($_GET['main']))  
        
$_GET['main'] = "home";  
    if(
file_exists($_GET['main'].".php")) {  
        include(
$_GET['main'].".php");  
    } else {  
        include(
"Main.html");  
   } 
?>

ersetzt.
das geht alles super und ich spar mir die config.php aber nu meckert er

Warning: include(config.php) [function.include]: failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/m.../Index.php on line 3

Warning: include() [function.include]: Failed opening 'config.php' for inclusion (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/m.../Index.php on line 3

dabei lad ich keine config.php
siehe hier: index.php
PHP-Code:

 <?php    
error_reporting
(E_ALL);  
echo 
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n";    
echo 
"         \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"
echo 
"        <html>\n";
echo 
"        <head>\n";
echo 
"        <title>Fixierte Navigation nur für moderne Browser</title>\n";
echo 
"        <!--[if lt IE 7]><style type=\"text/css\">\n";
echo 
"          @media screen { html, body { height: 100%; overflow-y: hidden; }\n";
echo 
"           #Scrollbereich { height: 100%; width: 100%; overflow: auto; }\n";
echo 
"            #Inhalt { position: static; } }\n";
echo 
"        </style><![endif]-->\n";
echo 
"        <style type=\"text/css\">\n";
echo 
"          body { font: normal 100.01% Helvetica, Arial, sans-serif; color: black; background-color: white; min-width: 40em; } \n";
echo 
"          html { padding: 0; }\n";
echo 
"          body { margin: 0; padding: 0; }\n";
echo 
"          #Navi { position: absolute; top:114px; left:0px; width:150px; height:200px; }\n";
echo 
"          #Inhalt {margin-left:160px; margin-top:140px; } \n";
echo 
"          #logo { position: absolute; top:0px; left:0px; width:986px; height:114px; }  \n";
echo 
"          #Banner { position: absolute; top:114px; right:0px; width:120px; height:114px; }  \n";
echo 
"        </style>\n";
echo 
"        </head>\n";
echo 
"        <body>\n";
echo 
"        <div id=\"Scrollbereich\">  \n";
echo 
"                <div id=\"Banner\">\n";
include 
"Banner/Banner.html";
echo 
"                </div>\n";
echo 
"                <div id=\"logo\">\n";
include 
"Logo.php";
echo 
"                </div>\n";
echo 
"                <div id=\"Inhalt\">\n";
include 
"Inhalt.php"
echo 
"                </div>\n";
echo 
"        </div>\n";
echo 
"        <div id=\"Navi\">\n";
include 
"Navi.html";
echo 
"        </div>\n";
echo 
"        </body>\n";
echo 
"        </html>\n";
;
?>

woran kann das liegen?
ich lade auch sonst keine config.php auf irgendeiner seite

mfg

bitte helft mir ich verzweifel

Chris_M 05.04.2008 22:51:26

AW: $_get verlinkung
 
nabend

hab den fehler gefunden

war nur ein feher in einem formular hab Index.php?main.... abgeschickt statt index.php?main...

kann das hier bitte gelöscht werden in ja alles unnötig her

mfg

rarios 05.04.2008 23:58:15

AW: $_get verlinkung
 
Ist glaube ich eher PHP Grundlagen, anstatt PHP für Fortgeschrittene und Experten...


Alle Zeitangaben in WEZ +2. Es ist jetzt 14:25:07 Uhr.

Powered by vBulletin® Version 3.8.3 (Deutsch)
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.