A
Azzkicker
Könnt ihr mir sagen wo der fehler is? Der sagt in Zeile 16 sei er, ich seh nix
<html>
<head>
</head>
<body>
<?
if ($REQUEST_METHOD == 'POST')
{
$name = $HTTP_POST_VARS['name'];
$datum = date('d.m.y');
$subject = $HTTP_POST_VARS['ueberschrift'];
$text = nl2br($HTTP_POST_VARS['text']);
$datei = fopen("news.dat", "a");
fwrite($datei, "$name;$datum;$subject;$text\n");
fclose($datei);
} else {
<form method="post" action="<? echo"=$PHP_SELF?";>?action=news>"
<div align="center">
<center>
<table border="1" cellpadding="0" cellspacing="0" background="bg.gif" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#000000">
<tr>
<td>
Name: </td>
<td> <input name="name" style="background-color:#394175; color: #7485A1; font-family: Verdana, Arial, Helvetica; font-size:8pt; border-style: solid; border-color: #000000"></td>
</tr>
<tr>
<td>
Überschrift: </td>
<td> <input name="ueberschrift" style="background-color:#394175; color: #7485A1; font-family: Verdana, Arial, Helvetica; font-size:8pt; border-style: solid; border-color: #000000"></td>
</tr>
<tr>
<td>
Text: </td>
<td> <textarea name="text" rows="7" cols="41" style="background-color:#394175; color: #7485A1; font-family: Verdana, Arial, Helvetica; font-size:8pt; border-style: solid; border-color: #000000"></textarea>
</td>
</tr>
<tr>
<td colspan="2">
<p align="center">
<input type="submit" style="background-color:#394175; color: #7485A1; font-family: Verdana, Arial, Helvetica; font-size:8pt; border-style: solid; border-color: #000000" value=" Post ">
</td>
</tr>
</table>
</center>
</div>
</form>
}
?>
</body>
</html>
<html>
<head>
</head>
<body>
<?
if ($REQUEST_METHOD == 'POST')
{
$name = $HTTP_POST_VARS['name'];
$datum = date('d.m.y');
$subject = $HTTP_POST_VARS['ueberschrift'];
$text = nl2br($HTTP_POST_VARS['text']);
$datei = fopen("news.dat", "a");
fwrite($datei, "$name;$datum;$subject;$text\n");
fclose($datei);
} else {
<form method="post" action="<? echo"=$PHP_SELF?";>?action=news>"
<div align="center">
<center>
<table border="1" cellpadding="0" cellspacing="0" background="bg.gif" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#000000">
<tr>
<td>
Name: </td>
<td> <input name="name" style="background-color:#394175; color: #7485A1; font-family: Verdana, Arial, Helvetica; font-size:8pt; border-style: solid; border-color: #000000"></td>
</tr>
<tr>
<td>
Überschrift: </td>
<td> <input name="ueberschrift" style="background-color:#394175; color: #7485A1; font-family: Verdana, Arial, Helvetica; font-size:8pt; border-style: solid; border-color: #000000"></td>
</tr>
<tr>
<td>
Text: </td>
<td> <textarea name="text" rows="7" cols="41" style="background-color:#394175; color: #7485A1; font-family: Verdana, Arial, Helvetica; font-size:8pt; border-style: solid; border-color: #000000"></textarea>
</td>
</tr>
<tr>
<td colspan="2">
<p align="center">
<input type="submit" style="background-color:#394175; color: #7485A1; font-family: Verdana, Arial, Helvetica; font-size:8pt; border-style: solid; border-color: #000000" value=" Post ">
</td>
</tr>
</table>
</center>
</div>
</form>
}
?>
</body>
</html>