mam taky problem, robim stranku, ktora by mala fungovat ako take jednoduchsie forum, iba jednoduche prispievanie a citanie.
zacal som samozrejme loginom, vsetko fungovalo v poriadku az zrazu v jednom momente to fungovat prestalo (neviem preco, nieco som musel asi zmenit, ale viem ani za nic prist na to co).
toto je cely index.php
<?session_start();
include("./settings.php");
include("./language/".$settings['language'].".php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=windows-1250">
<title><?echo $txt['login_title']?></title>
<link rel="stylesheet" href="core/style.css">
</head>
<body>
<?php include("core/functions.php"); ?>
<form method="POST" action="">
<table align=center frame=box>
<tr><td colspan="2" align=center><b><?echo $txt['login_login']?>.</b></td></tr>
<tr><td align=right><?echo $txt['login_name']?>:</td><td><input tabindex="1" type="text" name="name"></td></tr>
<tr><td align=right><?echo $txt['login_pass']?>:</td><td><input tabindex="2" type="password" name="pass"></td></tr>
<tr><td></td><td align=right><input tabindex="3" type="submit" name="prihlasenie" class="tlacitko" value="<?echo $txt['login_enter']?>"></td></tr>
</table>
</form>
<?php
if (isset($_POST['prihlasenie'])) {
$username = $_POST['name'];
if (prihlasenie($username, $_POST['pass'])) {
$_SESSION['user'] = $username;
header("Location: core/problems.php");
}
else {
echo "error";
session_destroy();
}
}
?>
</body>
</html>
so session_start vraj byvaju problemy, ked neni uplne na zaciatku, ale tu je, ani ziadne prazdne znaky tam nie su, kodovanie je ANSI, predtym som to mal v UTF-8, ale ten tam vzdy na zaciatok pridaval BOM a potom to blbo...
dufam, ze mi niekto bude vediet pomoc, pretoze uz si neviem rady.
Vopred dakujem.