Problem when create login form with DreamWeaver CS4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Altair
    New Member
    • Jan 2011
    • 2

    Problem when create login form with DreamWeaver CS4

    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
    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>&nbsp;</p>
    </form>
    <p>&nbsp;</p>
    </body>
    </html>
    I try using MySQL , Navicat , XAMPP .... but no luck .What can i do ?
  • JKing
    Recognized Expert Top Contributor
    • Jun 2007
    • 1206

    #2
    There is no code here that connects to a database.

    Comment

    Working...