Jump to content

shadizon

Members
  • Posts

    9
  • Joined

  • Last visited

About shadizon

  • Birthday October 26

Previous Fields

  • Languages
    HTML,CSS,PHP

shadizon's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. I made it for a contest , Its conditions are a login gate & flash intro !My website is supposed to an informative site , and I thought I would make it more dynamic by adding service like reservation ,Broadcast for important Events ... If u give me ur email , I will send it to you .
  2. This Is supposed to be a church site , It will provide Information , new ,etc !! I was thinking about making it more dynamic by adding Travels & Trips Reservation !! & Actually I made it to enter an Contest for making a website , The conditions are making a login gate & Flash Intro ....
  3. Hello , Can u tell me ur opinions about this website ? http://itestwebhere.hostoi.com/
  4. shadizon

    Cookies & Login !

    Hello , I read that Cookies are good way to transfer info between pages , So I wrote my own login script , but when I move to then next page it can't read the cookie that I made in the login php page !! <?phpfunction CheckLoginInDB($username,$password){ $con=mysql_connect('localhost','root','123'); mysql_select_db('users', $con); if(!$con) { echo "Database login failed! PLease try again"; return false; } $qry = "Select * from users.usrinfo where usrlogin='$username' and usrpass='$password' "; $result = mysql_query($qry); $count = mysql_num_rows($result); if( $count!=1 ) { echo "Error logging in. " ."The username or password does not match"; return false; } return true;} if(empty($_POST['username'])) { echo "UserName is empty!<br />"; } if(empty($_POST['password'])) { echo "Password is empty!"; return false; } $username = trim($_POST['username']); $password = trim($_POST['password']); if(!CheckLoginInDB($username,$password)) { echo "Wrong Password !!"; } else { $cookieusr =$_POST['username']; setcookie("user",$cookieusr,time()+36000); echo "You Have logged in succesfully !!"; } ?>
×
×
  • Create New...