dragon's might
26-10-2003, 11:53
Hi,
versuche mich wieder an PHP.
Hab hier ein HTML Formular:
<html>
<head>
<title>Listing 9.2: Ein einfaches HTML Formular</title>
</head>
<body>
<form action="listing_9_3.php" method="GET">
<input type="text" name="benutzer">
<br>
<textarea name="adresse" rows="5" cols="40">
</textarea>
<br>
<input type="submit" value="Klick mich">
<br>
</form>
</body>
</html>
und ein PHP Listing das das Auswertet:
<html>
<head>
<title>Listing 9.3: Auswertung der Formulardaten<title>
</head>
<body>
<?php
print "Herzlich Willkommen <b>$benutzer</b><p>\n\n";
print "Ihre Adresse ist:<p>\n\n<b>$adresse</b>";
?>
</body>
</html>
Mein Problem ist das nach dem senden des Formulars nichts angezeigt wird (alles weiß), doch wenn man auf der leeren Seite den Quelltext anguckt sieht alles in Ordung aus(nur im Quelltext!).
Sonst funktioniert php (Hello World etc;))
versuche mich wieder an PHP.
Hab hier ein HTML Formular:
<html>
<head>
<title>Listing 9.2: Ein einfaches HTML Formular</title>
</head>
<body>
<form action="listing_9_3.php" method="GET">
<input type="text" name="benutzer">
<br>
<textarea name="adresse" rows="5" cols="40">
</textarea>
<br>
<input type="submit" value="Klick mich">
<br>
</form>
</body>
</html>
und ein PHP Listing das das Auswertet:
<html>
<head>
<title>Listing 9.3: Auswertung der Formulardaten<title>
</head>
<body>
<?php
print "Herzlich Willkommen <b>$benutzer</b><p>\n\n";
print "Ihre Adresse ist:<p>\n\n<b>$adresse</b>";
?>
</body>
</html>
Mein Problem ist das nach dem senden des Formulars nichts angezeigt wird (alles weiß), doch wenn man auf der leeren Seite den Quelltext anguckt sieht alles in Ordung aus(nur im Quelltext!).
Sonst funktioniert php (Hello World etc;))