8/21/11

////

create a page with the member. php ( part 1 )

First - first, you mentally prepare for these stages - the stage! create a file called bottom.php Below is the program listing bottom.php

Selamat datang $_SESSION[userid] Click here to logout   |   Change Password |   Update Profile 
";
echo mysql_error();}
else{
echo "
Please Login
"; } ?>
Then make a change-password.php This program listing







Ganti Password

Password Baru Tulis Password Kembali "; echo "
"; require "bottom.php"; ?>

 

 

understand in writing of the script above, I hope you write back or understand it then we make another change-passwordck.php within the meaning of this word was the one who executes the data on the change-password.php here's the listing program of change-passwordck.php



	
8 ){ $msg=$msg."Password harus lebih dari 3 karakter dan panjang maksimum 8
"; $status= "NOTOK";} if ( $password <> $password2 ){ $msg=$msg."Kedua password tidak cocok
"; $status= "NOTOK";} if($status<>"OK"){ echo "$msg
"; }else{ // if all validations are passed. if(mysql_query("update lutfimove_signup set password='$password' where userid='$_SESSION[userid]'")){ echo "
Terimakasih
Password Anda berhasil diubah. Harap simpan mengubah kata sandi Anda untuk keamanan yang lebih baik
"; }else{echo "
Sorry
Gagal untuk mengubah password Kontak Admin Situs
"; } } } require "bottom.php"; ?>

 

 

scripts on a lot of explaining that all have the intent and purpose. Example snippet look for the lines to 34 change-passwordck.php there is tag if (strlen ($ password) <3 or strlen ($ password) -> 8) { indicates that the password must weigh more than 3 characters or a variable I think you begin to understand it, take heart: D then we create a file check.php function of this check.php to check who logged in and reply permissions on member pages The following is a script check.php
Sorry, Please login and use this page ";
exit;
}
?>
then after you make check.php just create config.php file that has a database make exactly like the program listing below config.php
"Januari",2=>"Februari",3=>"Maret",4=>"April",5=>"Mei",6=>"Juni",7=>"Juli",8=>"Agustus",9=>"September",10=>"Oktober",11=>"November",12=>"Desember");
$bulan=$arr_bulan[$int_bulan];
return($bulan);
}
#Fungsi menciptakan nama hari dalam bahasa Indonesia
function namahari(){
	$day=date("l");
	switch($day){
	case "Monday": $hari="Senin"; break;
	case "Tuesday": $hari="Selasa"; break;
	case "Wednesday": $hari="Rabu"; break;
	case "Thursday": $hari="Kamis"; break;
	case "Friday": $hari="Jumat"; break;
	case "Saturday": $hari="Sabtu"; break;
	case "Sunday": $hari="Minggu"; break;
	}
	return($hari);
} 

?>

2 Reactions to this post

Add Comment
  1. Lutfi Artheraphy said... August 22, 2011 at 7:16 AM

    its to continued my brothers?

  2. Wiliam Gates said... September 6, 2011 at 9:56 AM

    I wait for the continuation of this post.
    really interesting

Post a Comment