Results 1 to 6 of 6
Threaded View
-
28th Nov 2009, 08:06 AM #2
MemberWebsite's:
Pirateview.org Gfxs.org StarkWood.orgThis is the html part of the code for the layout of the login box.
Code:<html> <head><title>Login System By NucleA</title></head> <body> <form method=GET action="login.php"> Username: <input type="TEXT" name="Username"><br/> Password: <input type="TEXT" name="Password"><br/> <input type="Submit" value="Login"> </body></html>Code:<?php session_start(); mysql_connect("YOUR MYSQl SERVER", "MYSQL USERNAME", "MYSQL PASSWORD") or die(mysql_error()); mysql_select_db("Mysql Database") or die(mysql_error()); $username=$_GET['Username']; $password=$_GET['Password']; $ver=0; $result=mysql_query("SELECT * FROM table") or die(mysql_error()); while($row = mysql_fetch_array( $result )) { if($username=$row['Username']){ $ver=$ver+1; } else{ echo "Invalid Username!"; } if($password=$row['Password']){ $ver=$ver+1; } else{ echo "Invalid Password!"; } if ($ver=2){ echo "Successfull Login!"; $_SESSION['User']=REGISTERED; }
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)










Register To Reply

Staff Online
themaCreator - create posts from...
Version 3.55 released. Open older version (or...