note 101756 rejected from function.session-start by danbrown
| From: | danbrown@php.net | Date: | Sun, 09 Jan 2011 16:41:23 +0000 |
| Subject: | note 101756 rejected from function.session-start by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-175561@lists.php.net to get a copy of this message | ||
Note Submitter: Sejk (sekara97 at gmail dot com)
----
why this wont work ?
<?php include("gore.php"); ?>
<div class="ime">Log in</div>
<div class="sadrzaj">
<?php
$ime=$_POST['user'];
$sifra=$_POST['sifra'];
$zasticenasifra=md5($sifra);
$fajl="users/$ime/sifra.dat";
if(file_exists($fajl)){
$fajl2="users/$ime/sifra.dat";
$linija=file($fajl2);
$upisanasifra=$linija[0];
if($upisanasifra == $zasticenasifra){
$fajl3="users/$ime/off.dat";
if(file_exists($fajl3)){
echo "Your profile isn't acivated, check your email !";
}
else {
$imesifra = $ime|$sifra
session_start();
$ses=$_SESSION['imesifra'] = $imesifra;
echo "You are logged in !<br/>Go to <a href=\"menu.php\">menu</a>
!";
}
}
else {
echo "Wrong password !";
}}
else {
echo "User does not exists !";
}
echo "</div>";
include("dole.php");
?>