admin bölümü için şifre sorgusu
6
●588
- 18-06-2007, 11:27:16
<?php $ourLogin = "login"; $ourPassword = "pass"; session_start(); if ($_SESSION['login']!=$ourLogin && $_SESSION['password']!=$ourPassword) { if ($_POST['login']==$ourLogin && $_POST['password']==$ourPassword) { $_SESSION['login'] = $_POST['login']; $_SESSION['password'] = $_POST['password']; header("Location: index.php"); } else { echo " <form action=index.php method=post> Login:<br> <input type=text name=login value=''><br> Password:<br> <input type=text name=password value=''><br> <input type=submit value=' - ok - '> </form> "; exit; } } ?>+rep - 18-06-2007, 12:38:10çalışıyor fakat:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Apache\acilim\yonetim\index.php:1) in C:\Apache\acilim\yonetim\index.php on line 5