Wikinger75
Neues Mitglied
Hi Leute.
Ich hab ein Problem.
Ich habe eine HTML und eine PHP Datei.
Wenn ich die HTML Datei ausführe (Im Browser), dann klapts ja, aber wenn mich das Formular dan zum Ergebniss bringen soll, steht da nichts drin.
Mein Code:
HTML Datei:
PHP Datei:
Warum findet bei dem echo keine Ausgabe statt?
Ich hab ein Problem.
Ich habe eine HTML und eine PHP Datei.
Wenn ich die HTML Datei ausführe (Im Browser), dann klapts ja, aber wenn mich das Formular dan zum Ergebniss bringen soll, steht da nichts drin.
Mein Code:
HTML Datei:
HTML:
<html>
<head>
<title>Taschen Rechner</title>
</head>
<body>
<form action="TaschenRechnerAPP.php" method="post">
<input type="text" name="NUMMER_EINS" size="5">
<input type="submit" value="+">
<input type="text" name="NUMMER_ZWEI" size="5">
</form>
</body>
</html>
PHP:
<html><head><title>Taschen Rechner</title></head>
<body>
<?php
$EINS = $_POST["NUMMER_EINS"];
$ZWEI = $_POST["NUMMER_ZWEI"];
$ERGEBNIS = $EINS + $ZWEI;
echo "$EINS + $ZWEI = $ERGEBNIS";
?>
</body></html>