php.de

Zurück   php.de > Webentwicklung > PHP Einsteiger > PHP Tipps 2004-2

 
 
LinkBack Themen-Optionen Thema bewerten
Alt 23.12.2004, 18:42  
Gast
 
Beiträge: n/a
Standard Probleme mit include

Hallo,

bin gerade dabei meine Page auf PHP umzuproggen. Hab mich dazu entschlossen mit include zu arbeiten, nur bin ich vor kurzem auf ein kleines (bzw. vielleicht auch größeres ) Problem gestoßen. Ich habe mich auch schon bei einem Freund schlau gemacht, der von PHP Ahnung hat, der konnte mir auch nicht weiter helfen...

Mein Aufbau:
Ich habe eine Navi Leiste (kein Frame, weil ich will keine Frames...) und habe dort die Links ala
Code:
index.php?link=seite.php
Diese werden per include in einer Tab in der Mitte geöfnet mit
Code:
<?php
if(isset($_GET["link"])){

include $_GET["link"];}

else{include "main.php";}
?>
soweit so gut , funktioniert alles bestens

Mein Prob:
Ich habe ein Member-Loggin auf der Seite, das per "form post " das Kennwort prüft
Code:
<form action="http://www.domain.de/verzeichnis/pass.php?" method="post">
Wie schaffe ich es, dass diese Seite sich auch per include in der Tab lädt?
Denn wenn ich es mache wie mit den anderen Links in der Navi, dann kommen immer Fehler, lade ich die pass.php als "_blank" funkt alles.

Wer kann mir da weiter helfen, bzw. geht das überhaupt oder muss ich es anders versuchen?

Schonmal vielen Dank im Voraus!
 
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 23.12.2004, 18:48  
Erfahrener Benutzer
 
Registriert seit: 05.12.2004
Beiträge: 110
d4rki
Standard

Also wenn ich das richtig verstanden haben willst du das ganze einfach in der pass.php? übergeben.

Dann übergib die info einfach wie du oben schon gesagt hast.

PHP-Code:
<form action="http://www.domain.de/verzeichnis/pass.php?<?php print $name?>&<?php print $password?>" method="post">
Oder du machst es mit
PHP-Code:
$_GET 
Also:

PHP-Code:
link.php?$_GET["link"
d4rki ist offline  
Alt 23.12.2004, 19:19  
Gast
 
Beiträge: n/a
Standard

Also ich glaub ich stell mich einfach zu dumm an, wenn ich
Code:
<form action="http://www.domain.de/verzeichnis/pass.php?$_GET["link"]" method="post">
nehme, öffnet sich die pass.php an Stelle der index.php, ich will aber, dass sich die pass.php nur in der Tab in der Mitte öffnet.
 
 


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Include Probleme meici PHP Tipps 2008 3 10.02.2008 09:37
hinter include wird eine 1 angezeigt |~Râdîant~| PHP Tipps 2008 8 19.09.2007 13:52
include problem Canni PHP Tipps 2006 26 14.11.2006 14:24
Probleme mit Switch und Include Fishup PHP Tipps 2006 8 23.05.2006 10:45
Probleme mit include PHP Tipps 2005-2 5 24.10.2005 15:50
Probleme mit header() und include() und relativen Pfaden PHP Tipps 2005-2 3 08.10.2005 16:00
Probleme mit include PHP Tipps 2005-2 20 16.08.2005 09:13
Auf Firmen-Server funzt kein include aus fremden Verzeichnis PHP-Fortgeschrittene 3 19.07.2005 16:49
[Erledigt] Include liegt in einem anderen Verzeichnis - es geht nix PHP Tipps 2005-2 3 03.07.2005 22:40
probleme mit include() + form + db PHP Tipps 2005 12 24.03.2005 13:40
Probleme mit include oder Variablen PHP Tipps 2005 11 16.03.2005 22:30
include probleme imported_dirk PHP Tipps 2005 10 13.03.2005 15:38
probleme mit include und header Rotti PHP Tipps 2004-2 18 27.12.2004 09:20
Probleme mit include papalangi PHP-Fortgeschrittene 10 27.10.2004 01:24
Include() probleme PHP Tipps 2004 8 22.07.2004 14:36

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
\include \'html/form\'\ php, php include problem, form include, html form include, php include öffnet 2 tab, include php formular, php seite per post include, php include post, php include und post, include in form action php, http post an php include, wieso habe ich include.php in meiner domain?, tabulator in php include, php include gerade, php incluse per post, include formular problem, ohne include.php öffnet meine seite nicht, php include html formular fehler, php seite mit passwort und benutzer include, links mit php und include

Alle Zeitangaben in WEZ +2. Es ist jetzt 01:42 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.