Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Problem ze syntax error, Przeglądarka wywala mi błąd niespodziewanego znaku
-rafalpl-
post 24.07.2012, 13:50:03
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
 
Start new topic
Odpowiedzi (1 - 2)
darko
post 24.07.2012, 13:53:42
Post #2





Grupa: Zarejestrowani
Postów: 2 885
Pomógł: 463
Dołączył: 3.10.2009
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


http://php.net/manual/en/control-structures.goto.php
Staraj się nie korzystać z pseudo operatora goto


--------------------
Nie pomagam na pw, tylko forum.
Go to the top of the page
+Quote Post
wookieb
post 24.07.2012, 13:54:03
Post #3





Grupa: Moderatorzy
Postów: 8 989
Pomógł: 1550
Dołączył: 8.08.2008
Skąd: Słupsk/Gdańsk




Forum nie parser. Zamykam.


--------------------
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 24.07.2025 - 15:39