witam server caly czas raportuje mi blad
Cytat
Parse error: parse error, unexpected T_ELSEIF in /home/users/nbkclan/public_html/articles.php on line 30
i mysle ze wszystko jest dobrze
<html>
<head>
<title>Natural Born Kilazz A Polish Counter-Strike Clan | Articles</title>
</head>
<body>
<?
$file = fopen($article, \"r\"); $data = fread($file, 1000
); print(\"<pre>$stripped_data</pre>\"); elseif($format == \"email\"):
?>
<h2>Wyslij Artykul</h2>
<form action=\"index.php?go=articles\" method=\"POST\">
<p>Wyslij na adres e-mail: <input type=\"text\" name\"to\">
<br>
Twoj adres e-mail: <input type=\"text\" name=\"from\">
<br>
Krotki komentarz: <input type=\"text\" name=\"comment\">
<input type=\"hidden\" name=\"article\" value=\"
<? echo $article ?>\">
<br>
<input type=\"submit\" name=\"submit\" value=\"Wyslij!\">
</form>
<?
endif;
$file = fopen($article, \"r\"); $data = fread($file, 1000
); $body = \"Komentarz od nadawcy: \" . $comment . \"nn\" .
$stripped_data;
$subject = \"Ten artykul powinien Cie zainteresowac!\";
mail($to, $subject, $body, \"FROM: $from\"); ?>
<h2>E-mail zostal wyslany ze strony NBK pomyslnie!</h2>
<hr>
<?
print(\"Do: $to<br>Od: $from<br>Temat: $subject<p><pre>$body</pre><hr>n\";
else:
$file = fopen($article, \"r\"); $data = fread($file, 1000
); ?>
<hr>
<p>Sformatuj ten artykul do <a href=\"index.php?go=articles&go=article=
<? echo $article ?>&format=print\">drukuj</a>!
<br>
<a href=\"index.php?go=articles&go=article=
<? echo $article ?>&format=email\">wyslij</a> ten artykul znajomemu!
<?
endif;
?>
</body>
</html>