Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Problem ze syntax error, Przeglądarka wywala mi błąd niespodziewanego znaku
-rafalpl-
post
Post #1





Goście







Witam mam taki plik :
<?php

session_start();
include("goto.php");
include("password.php");
if($_SESSION['kapass'] == "poprawne"){
goto($goodpassword);
exit;
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<title>Logowanie</title>
<?php
include("styles.inc.php");
?>
</head>
<body>
<center>

<form action="logincheck.php" method="POST">
<table border="1">
<tr bgcolor="lightyellow"><td><font class="text">Hasło:</font></td><td><input type="password" name="pass" class="textbox"></td></tr>
<tr bgcolor="yellow"><td colspan="2" align="center"><input type="submit" value="Zaloguj"></td></tr>
</table>
</form>

<?php
if($_SESSION['kapass'] == "poprawne"){}
else{
echo $_SESSION['kapass'];
}
?>

</center>
</body>
</html>

w przeglądarce wywala mi taki błąd:

Parse error: syntax error, unexpected '(', expecting T_STRING in /home/malibupc/public_html/internetowysklepik.pl/admin/login.php on line 7

Juz nie wiem o co chodzi , pomocy co mam źle.
Go to the top of the page
+Quote Post

Posty w temacie
- rafalpl   [PHP]Problem ze syntax error   24.07.2012, 13:50:03
- - darko   http://php.net/manual/en/control-structures.goto.p...   24.07.2012, 13:53:42
- - wookieb   Forum nie parser. Zamykam.   24.07.2012, 13:54:03


Closed TopicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 20:55