Php Code for Membership Panel - Computer engineering - C# php asp .Net SAP SQL

Thursday, April 10, 2008

Php Code for Membership Panel

These, the codes below is the part of an HTML code for the form of member login.





here is the starting point of the php codes:

ob_start();
include "baglantidosyasi.php";
/* First we get the inğut datas by POST method. */
$kullanici=$_POST["kullanici"];
$sifre=$_POST["sifre"];
$sifrelisifre=md5($sifre); /* Burada Sifreyi md5 leyelim */
/*We are checking username and the password if they are empty */
if(($kullanici=="")or($sifre=="")){
echo "Please do not enter space!!!";
}else{
/*If the pasword and the username is not empty*/
$uyesor=mysql_query("select kullanici,sifre from uyelik where kullanici='$kullanici' and sifre='$sifrelisifre'");
if(@mysql_num_rows($uyesor)>0){
echo "
Welcome $kullanici
";
setcookie("kullanici",$kullanici);
echo "Please Click For Backward HomePage";
}else{
echo "Not Success!...";
}
}
?>



ob_start();
/*Let's check out the cookies if they are empty then the enterance screen will appear*/
$cookie=$_COOKIE["kullanici"];
if($cookie==""){
echo 'Üye Ol | Üye Girişi Yap | ';
}else{
$tarih=date("d/m/y");
echo "Welcome $cookie | Now Date $tarih ";
}
?>



Baglantidosyasi.php

$hostadresi="localhost";
$kullaniciadi="";
$sifre="";
$ad="";
$dbadi="uyelik";
@$baglan=mysql_connect($hostadresi,"root","") or die ("Mysq Bagalkanadmi");
@mysql_select_db($dbadi,$baglan) or die ("vt Bagalkanadmi");
?>

Try to decode =))
Good Luck!!!

3 comments:

ersin said...

Blog of Entering WebSide :)
are there any Trabzoner among you?

JuiceMunkey.com said...
This comment has been removed by the author.
JuiceMunkey.com said...

you should check out overclockershq.com post some of your stuff in the forums. Great way to get back links to your site. thanks for all the free info this is an awesome blog.