Hallo zusammen,
ich hab mir mit Mühe und Not ein bereits bestehendes Kontaktformular erweitert und bekomme nun diese Fehlermeldung:
Hier der Code:
Könnte mir bitte jemand sagen, wies richtig heißen muss?
ich hab mir mit Mühe und Not ein bereits bestehendes Kontaktformular erweitert und bekomme nun diese Fehlermeldung:
Parse error: syntax error, unexpected T_STRING in /www/htdocs/w00951bc/nute.php on line 89
PHP-Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>***</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="robots" content="all" />
<meta http-equiv="content-language" content="de" />
<style type="text/css">
body {font-family: Arial; font-size: 12px; color: #000000;}
label {
cursor:pointer;
float:left;
width:10em;
}
input, select, textarea { background-color: #DCF1FC; font-family: Arial; font-size:12px; color: #000000; border: 1px solid #ACDAF1;}
</style>
</head>
<body>
<form action="" method="post">
<p>
<label for="email">ABSENDER</label>
<input type="text" name="email" id="email" value="<?php if (isset($_POST['email'])) { echo $_POST['email']; } else { echo "***"; } ?>" />
</p>
<p>
<label for="emeetings">eMeetings</label>
<input type="text" name="emeetings" id="emeetings" value="<?php if (isset($_POST['emeetings'])) { echo $_POST['emeetings']; } else { echo "0"; } ?>" />
</p>
<p>
<label for="flohmarkt">Flohmarkt</label>
<input type="text" name="flohmarkt" id="flohmarkt" value="<?php if (isset($_POST['flohmarkt'])) { echo $_POST['flohmarkt']; } else { echo "0"; } ?>" />
</p>
<p>
<label for="gb">GBs</label>
<input type="text" name="gb" id="gb" value="<?php if (isset($_POST['gb'])) { echo $_POST['gb']; } else { echo "0"; } ?>" />
</p>
<p>
<label for="pb">Profilbild</label>
<input type="text" name="pb" id="pb" value="<?php if (isset($_POST['pb'])) { echo $_POST['pb']; } else { echo "0"; } ?>" />
</p>
<p>
<label for="pi">Profilinhalte</label>
<input type="text" name="pi" id="pi" value="<?php if (isset($_POST['pi'])) { echo $_POST['pi']; } else { echo "0"; } ?>" />
</p>
<p>
<label for="verwarn">Verwarnungen</label>
<input type="text" name="verwarn" id="verwarn" value="<?php if (isset($_POST['verwarn'])) { echo $_POST['verwarn']; } else { echo "0"; } ?>" />
</p>
<p>
<label for="foto">Fotos hochgeladen</label>
<input type="text" name="foto" id="foto" value="<?php if (isset($_POST['foto'])) { echo $_POST['foto']; } else { echo "0"; } ?>" />
</p>
<p>
<label for="gal">Anzahl Galerien</label>
<input type="text" name="gal" id="gal" value="<?php if (isset($_POST['gal'])) { echo $_POST['gal']; } else { echo "0"; } ?>" />
</p>
<p>
<label for="fotodel">Fotos gelöscht</label>
<input type="text" name="fotodel" id="fotodel" value="<?php if (isset($_POST['fotodel'])) { echo $_POST['fotodel']; } else { echo "0"; } ?>" />
</p>
<p>
<label for="komm">Kommentare</label>
<input type="text" name="komm" id="komm" value="<?php if (isset($_POST['komm'])) { echo $_POST['komm']; } else { echo "0"; } ?>" />
</p>
<p>
<label for="loca">Locations aufgenommen</label>
<input type="text" name="loca" id="loca" value="<?php if (isset($_POST['loca'])) { echo $_POST['loca']; } else { echo "0"; } ?>" />
</p>
<p>
<label for="locb">Locations bearbeitet</label>
<input type="text" name="locb" id="locb" value="<?php if (isset($_POST['locb'])) { echo $_POST['locb']; } else { echo "0"; } ?>" />
</p>
<p>
<label for="art">Artikel</label>
<input type="text" name="art" id="art" value="<?php if (isset($_POST['art'])) { echo $_POST['art']; } else { echo "0"; } ?>" />
</p>
<input type="submit" name="submit" value="absenden" />
</form>
<?php
if (isset($_POST['submit'])) {
if (isset($_POST['email']) && isset($_POST['emeetings']) && isset($_POST['flohmarkt']) && isset($_POST['gb']) && isset($_POST['pb']) && $_POST['pi'] != "" && $_POST['verwarn'] != "" && $_POST['foto'] != "" && $_POST['gal'] != "" && $_POST['fotodel'] != "" && $_POST['komm'] != "" && $_POST['loca'] != "" && $_POST['locb'] != "" && $_POST['art'] != "") {
if (is_numeric($_POST['azdkarten'])) {
if (isset($_POST['email']) && $_POST['email'] != "") {
if (strstr($_POST['email'], "@") && strstr($_POST['email'], ".")) {
$emailsicherheit = explode("(\n|\r)", $_POST['email']);
if (mail("***", "***", "eMeetings: " . $_POST['emeetings'] . "\nFlohmarkt: " . $_POST['flohmarkt'] . "\nGBs: " . $_POST['gb'] . "\nProfilbild: " . $_POST['pb'] . "\nProfilinhalte: " . $_POST['pi'] . "\nVerwarnungen: " . $_POST['verwarn'] . "\nFotos hochgeladen: " . $_POST['foto'] . "\nAnzahl Galerien: " . $_POST['gal'] . "\nFotos gelöscht: " . $_POST['fotodel'] . "\nKommentare: " . $_POST['komm'] . "\nLocations aufgenommen: " . $_POST['loca'] . "\nLocations bearbeitet: " . $_POST['locb'] . "\nArtikel: " . $_POST['art'] . "\n, "From: " . $emailsicherheit['0'])) {
echo "<p>Vielen Dank für die Meldung. Sei wurde erfolgreich versandt.</p>";
} else {
echo "Sendefehler bei der Funtkion mail().";
}
} else {
echo "<p>Die <b>E-Mailadresse</b> ist nicht korrekt angegeben.</p>";
}
} else {
$emailsicherheit = explode("(\n|\r)", $_POST['email']);
if (mail("***", "***", "eMeetings: " . $_POST['emeetings'] . "\nFlohmarkt: " . $_POST['flohmarkt'] . "\nGBs: " . $_POST['gb'] . "\nProfilbild: " . $_POST['pb'] . "\nProfilinhalte: " . $_POST['pi'] . "\nVerwarnungen: " . $_POST['verwarn'] . "\nFotos hochgeladen: " . $_POST['foto'] . "\nAnzahl Galerien: " . $_POST['gal'] . "\nFotos gelöscht: " . $_POST['fotodel'] . "\nKommentare: " . $_POST['komm'] . "\nLocations aufgenommen: " . $_POST['loca'] . "\nLocations bearbeitet: " . $_POST['locb'] . "\nArtikel: " . $_POST['art'] . "\n, "From: " . $emailsicherheit['0'])) {
echo "<p>Vielen Dank für die Meldung. Sei wurde erfolgreich versandt.</p>";
} else {
echo "Sendefehler bei der Funtkion mail().";
}
}
} else {
echo "<p>Bitte in jedes Feld ausschließlich Zahlen eingeben.</p>";
}
} else {
echo "<p>Eines der obigen Felder wurde nicht korrekt ausgefüllt.</p>";
}
}
?>
</body>
</html>
Kommentar