gamecard
Neues Mitglied
Hallo ich hab ein Fehler "
Parse error: syntax error, unexpected T_ELSE in /users/anime/www/php/auswertung.php on line 12
"
Und weiß nicht wo.
Und das andere Code Aus html
Parse error: syntax error, unexpected T_ELSE in /users/anime/www/php/auswertung.php on line 12
"
Und weiß nicht wo.
PHP:
<?php
if (isset($_POST['anrede'])&& isset($_POST['name'])&& $_POST['name'] !="") {
if ($_POST['anrede'] == "m") {
echo "Hallo Herr ";
} else {
echo "Hallo Frau ";
{
echo "<b> $_POST[vorname] $_POST[nachname]</b> </br>,
<b><center>Herzlich Willkommen</b></center> ";
} else {
echo "Bitte Füllen Sie alle Felder aus!";
}
}
?>
Und das andere Code Aus html
PHP:
<html>
<head>
<title>Formular</title>
</head>
<body>
<border>
<form action="auswertung.php" method= "post">
Ihr Vorname:
<input type="text" name="vorname"></br>
Ihr Nachname:
<input type="text" name="nachname"><br>
Anrede <input type="radio" name="anrede" value="m"> Herr
<input type="radio" name="Anrede" value="w"> Frau
</border>
<input type="submit">
</form>
</body>
</html>