1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65: | <?php
echo "<center><td class=\"form\">";
echo "<SCRIPT LANGUAGE=\"JavaScript\">";
echo "<!--";
echo "function validate_form() {";
echo " validity = true; // assume valid";
echo " if (!check_empty(document.formular.name.value))";
echo " { validity = false; alert('Namensfeld ist leer!'); }";
echo " if (!check_email(document.formular.email.value))";
echo " { validity = false; alert('eMail ist ungültig!'); }";
echo " if (!check_empty(document.formular.msg.value))";
echo " { validity = false; alert('Beschreibung ist leer'); }";
echo " if (validity)";
echo " alert (\"Alle benötigten Informationen wurden geprüft.\");";
echo " return validity;";
echo "}";
echo "function check_empty(text) {";
echo " return (text.length > 0); // gibt false zurück wenn leehr";
echo "}";
echo "function check_email(address) {";
echo " if ((address == '')";
echo " || (address.indexOf ('@') == -1)";
echo " || (address.indexOf ('.') == -1))";
echo " return false;";
echo " return true;";
echo "}";
echo "// -->";
echo "</script>";
echo "<form name=\"formular\" method=\"post\" onSubmit=return validate_form() action=\"write.php\" >";
echo "<input class=\"feld\" type=\"hidden\" name=\"redir\" value=\"drecj\"><input class=\"feld\" size=\"40\" type=\"hidden\" name=\"email\" MAXLENGTH=\"40\" value =\"" . $Mintern . "\"><input class=\"feld\" size=\"40\" type=\"hidden\" name=\"pic\" MAXLENGTH=\"40\" value =\"" . $pic . "\"><input class=\"feld\" size=\"40\" type=\"hidden\" name=\"event\" MAXLENGTH=\"40\" value =\"" . $event . "\"><input class=\"feld\" size=\"40\" type=\"hidden\" name=\"Mid\" MAXLENGTH=\"40\" value =\"" . $Mid . "\"><input class=\"feld\" size=\"40\" type=\"hidden\" name=\"Mnickname\" MAXLENGTH=\"40\" value =\"" . $Mnickname . "\">";
echo "<input class=\"feld\" type=\"hidden\" name=\"contentid\" value=\"" . $pic . "\">";
echo "<table width=\"100\"><tr><td width=\"100\">
</td><td width=\"100\">
</td>";
if ($login == '')
{
echo "<tr><td width=\"100\"><font color=\"#000000\">Name: </font></td>";
echo "<td width=\"100\"><input class=\"feld\" size=\"40\" type=\"text\" name=\"name\" MAXLENGTH=\"40\" >";
echo "<td></tr><tr><td width=\"50\"><font color=\"#000000\">E-Mail: </font></td><td width=\"100\">";
echo "<input class=\"feld\" size=\"40\" type=\"text\" name=\"email\" MAXLENGTH=\"40\" ></td></tr><tr>";
}
else
{
echo "<tr>";
}
echo "<td width=\"100\"><font color=\"#000000\">";
echo "Kommentar: </font></td><td width=\"100\">";
echo "<input class=\"feld\" size=\"40\" name=\"msg\" type=\"text\"><input class=\"feld\" type=\"hidden\" name=\"ip\" value=" . $_SERVER[REMOTE_ADDR] . "></td></tr></table>";
if ($login != '')
{
echo "
<input size=\"40\" name=\"anonym\" type=\"checkbox\" value=\"yes\"> Kommentar wird Anonym ohne deinen Nickname abgeben.";
echo "
";
// echo "<input size=\"40\" name=\"announcement\" type=\"checkbox\" value=\"true\">";
// echo " E-Mail-Benachrichtigung bei weiteren Kommentaren.
";
}
echo "
";
echo "<input type=\"Submit\" name=\"Submit\" value=\"Kommentar Senden\" style=\"background: #ffffff;font-size: 12; font-face: Verdana; font-color: #000000; border: 1 dotted #707070\">";
echo "</form>
";
?> |