Ftp web hosting - Chapter 16 . PHP Development 483 Two main
Chapter 16 . PHP Development 483 Two main PHP scripts make up the authentication system: a sign-in program and a cookie-validation program. The sign-in program prints a form for username and password, and then sets the cookie. It looks like this:
n ; exit; } elseif (!isset($user)) { echo Please enter username
n ; echo
n ; exit; } elseif (!isset($pass)) { echo Please enter password
n ; echo
n ; exit; } else { # Connect to the database $dbconn = mysql_connect($host,$username,$password) or die ( Couldn t connect to database server ); $db = mysql_select_db( auth ); $quoteduser = mysql_escape_string($user); $quotedpass = mysql_escape_string($pass); authenticate($user,$pass);
Looking for affordable and reliable webhost to host and run your business application? Then look no more and go to servlet web hosting services.