When using Dream Weaver CS4 to create a login form , i encounter a problem : Everytime i try to connect the database form MySQL , it says error code 405 : Method not allowed . How can i fix this problem ?
Here is my login form
I try using MySQL , Navicat , XAMPP .... but no luck .What can i do ?
Here is my login form
Code:
<!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>
</head>
<body>
<?php
$user = $_POST["username"] ;
$pass = $_POST["password"] ;
if ($user == "root" && $pass == "12345")
echo " Logged In " ;
?>
<form id="form1" name="form1" method="post" action="">
<p>Username
<label>
<input type="text" name="username" id="Username" />
</label>
</p>
<p>Password
<label>
<input type="text" name="password" id="Password" />
</label>
</p>
<p>
<label>
<input name="Login" type="submit" id="Login" value="Login" />
</label>
</p>
<p> </p>
</form>
<p> </p>
</body>
</html>
Comment