Formular geht nicht!
Verfasst: 19.02.2004 14:56
Hi,
ich bin in php ein totaler Anfänger! Ich habe ein Formular erstellt und möchte es mit php ausgeben.
Nur funktioniert das irgendwie nicht so, wie ich es will.
Hier der HTML-Code:
Dann habe ich gleich mal versucht den Namen auszugeben, was aber nicht geht. Es kommt nur eine weiße Seite:
Liebe Grüße
Reality
ich bin in php ein totaler Anfänger! Ich habe ein Formular erstellt und möchte es mit php ausgeben.
Nur funktioniert das irgendwie nicht so, wie ich es will.
Hier der HTML-Code:
Code: Alles auswählen
<html>
<head><title>Formular</title></head>
<form action="auswert.php" method="POST">
<br><br>
<table border="1" cellspacing="3" width="599" bordercolor="black" align="center">
<tr>
<th width="500">Bewertungsformular für die Klasse 2BKI2</th>
</tr>
</table>
<table border="1" align="center" cellspacing="10" bordercolor="black">
<tr>
<th>Bitte geben Sie ihren Name ein:</th>
<td><input type="text" name="name" size="53"></td>
</tr>
<tr>
<th>Passwort:</th>
<th><input type="password" name="passwort" size="53" maxlength="15"></th>
</tr>
<tr>
<th>Begrüßung</th>
<td><select name="begr" size="1">
<option select value="Ja">Ja
<option value="Nein">Nein
</select>
</td>
</tr>
<tr>
<th>Motivation</th>
<td>
<fieldset>
<input type="radio" name="motivation" value="5">5
<input type="radio" name="motivation" value="4">4
<input type="radio" name="motivation" value="3">3
<input type="radio" name="motivation" value="2">2
<input type="radio" name="motivation" value="1">1
<input type="radio" name="motivation" value="0">0
</fieldset>
</td>
</tr>
<tr>
<th>Bemerkung</th>
<td><textarea name="bemerkung" rows="5" cols="40"></textarea></td>
</tr>
</table>
<br>
<center><input type="submit" name="absenden" value="Absenden"></center>
</form>
</html>
Code: Alles auswählen
<php
$name= $_POST['name'];
$passwort= $_POST['passwort']
echo "Sie heissen $name";
?>
Reality