Jumat, 05 Juli 2013

mas mau tanya cara edit session dibawah ini bagaim...

Thank you for using rssforward.com! This service has been made possible by all our customers. In order to provide a sustainable, best of the breed RSS to Email experience, we've chosen to keep this as a paid subscription service. If you are satisfied with your free trial, please sign-up today. Subscriptions without a plan would soon be removed. Thank you!
Dharmawan Adi Saputra 10:27pm Jul 5
mas mau tanya cara edit session dibawah ini bagaimna agar user dan passowd itu didatabase?

<?php
session_start();
if(isset($_GET['logout'])){
session_destroy();
header('location: ?keluar=sukses');
}
if($_SERVER['REQUEST_METHOD'] == 'POST'){
if ($_POST['user']=='admin' && (md5($_POST['password'])== '21232f297a57a5a743894a0e4a801fc3')) {
$_SESSION['is_login'] = TRUE;
header('location: ?sukses');
}
else{
echo "User or Password salah";
}
}
if(!isset($_SESSION['is_login'])):
?>

trims

Fikri Handa Herriansyah 10:32pm Jul 5
udah buat database ?

Dharmawan Adi Saputra 10:33pm Jul 5
sudah selngkap didatabase. cuma bingung syntax manggil user dan pass aja'

Dharmawan Adi Saputra 06 Jul, 2013


-
Source: http://www.facebook.com/groups/35688476100/?id=10151737835571101
--
Manage subscription | Powered by rssforward.com

Tidak ada komentar:

Posting Komentar