okaay so iv got this login script but how do i ass css to it?
and i cant give it a div id because i just get errors help please!!
<?php
session_start();
include "./global.php";
echo "Login\n";
if ($_SESSION['uid']) {
echo "You are already logged in, if you wish to log out, please
click here!\n";
} else {
if (!$_POST['submit']) {
echo "
\n";
echo "\n";
echo "
Username |
|
\n";
echo "
Password |
|
\n";
echo " |
\n";
echo "
\n";
}else {
$user = mss($_POST['username']);
$pass = $_POST['password'];
if($user && $pass){
$sql = "SELECT id FROM `users` WHERE `username`='".$user."'";
$res = mysql_query($sql) or die(mysql_error());
if(mysql_num_rows($res) > 0){
$sql2 = "SELECT id FROM `users` WHERE `username`='".$user."' AND `password`='".md5($pass)."'";
$res2 = mysql_query($sql2) or die(mysql_error());
if(mysql_num_rows($res2) > 0){
$row = mysql_fetch_assoc($res2);
$_SESSION['uid'] = $row['id'];
echo "You have successfully logged in as " . $user . "
Proceed to the Forum Index\n";
}else {
echo "Username and password combination are incorrect!\n";
}
}else {
echo "The username you supplied does not exist!\n";
}
}else {
echo "You must supply both the username and password field!\n";
}
}
}
?>