Php error
Posted: 26. July 2007 17:05
Attached below is my code for a php script (it has no database look up required)..I can't get what I need to print.Also how can I encrypt the password.Any help would be appreciated ..Thanks
- Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<?php
$username = $_POST['username'];
$password = $_POST['password'];
if (($username == "Arjita") && (password == "sameer")){
print("Welcome Arjita");
}
else
{
print("you are not authorized to vie this ");
}
?>
</head>
<body>
<p>
<input name="username" type="text" />
</p>
<input name="password" type="text" />
<p> </p>
<p>
<input type = "Submit" name = "Submit1" value = "Login" />
</p>
<Form name ="form1" Method ="POST" Action ="C:\xampp\htdocs\Login.php">
</FORM>
</body>
</html>