hallo Marc and @all,
ok ich habe eine datei a.php.. dort steht drin:
<html>
<body>
<form action="a.php" method="post">
Username: <input type="text" name="username"><br>
Passwort: <input type="password" name="passwort"><br>
<input type="submit" value="Anmelden">
</form>
</body>
</html>
<?PHP
$username = $_POST['username'];
$passwort = $_POST['passwort'];
echo $username.'<br>'; // Bis hier klappt alles wie ich will
include 'b.php';
?>
Und in der Datei b.php steht drin:
<?PHP
echo $username;
?>
a.php funktioniert einwandfrei.. aber wenn b.php aufgerufen wird
(z.b. durch include 'b.php'), dann wird nichts ausgegeben!?
was mache ich falsch...bin noch ein PHP Laie..
grüßle jonas