Huhu
also ich hab wieder mal ein problem
PHP
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Feedbacks</title>
<style type="text/css">
p {
color: #36c;
}
a:link {color:#36c; text-decoration:none}
a:visited {color: red; text-decoration:none}
a:active {color: red; text-decoration:none}
a:hover {color: red; text-decoration:underline}
.bg-main {
background-color: #f3f3f3;
padding: 5px;
border-top: 2px solid #ccc;
border-bottom: 2px solid #ccc;
width: 600px;
}
.add {
background-color: #d1d1d1;
padding: 5px;
border-bottom: 2px solid #fff;
width: 600px;
}
</style>
</head>
<body>
<?php
if (isset($_GET['action'])) {
if (empty($_POST['name']) OR empty($_POST['text'])) {
echo "Bitte gehen Sie zurück und füllen Sie alle Angaben die mit einem * kennzeichnet worden sind aus.";
}
else {
if (isset($_POST['mail']) && isset($_POST['hp'])) {
$eintrag = "
<div class="add">
<font size=2>#1</font>
<font color="#800000">[b]Name:[/b]</font> " . $_POST['name'] . "
<font color="#800000">[b]Homepage:[/b] <a href=\"" . $_POST['hp'] . "\">" . $_POST['hp'] . "</a>
</div>";
echo "Danke für Ihre Nachricht
$eintrag";
}
}
}
else {
?>
<form action="Feedbacks.php?action=add" method="post" target=_top>
* Name/Firma <input type=text name=name>
Email <input type=text name=mail>
Homepage <input type=text name=hp>
<textarea name="text" cols="35" rows="8"></textarea>
<input type="submit" value=Senden>
</form>
<?php
}
?>
</body>
</html>
Alles anzeigen
Ich bekomme hierbei folgende fehlmeldung:
ZitatParse error: parse error, unexpected T_STRING in ... on line 42
line 42 wäre dann: <div class="add">
ich hab echt keine ahnung, aber ich vermute mal dass das Div nicht ins PHP reingehört.
ich hoffe ihr könnt mir helfen
lg