Czy ktoś może poprawić mi błędy w poniższym kodzie:
Z GÓRY DZIĘKUJĘ w imieniu moim i kolegi!
<!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>Login</title> </head> <?php }else{ ?> <!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=gb2312" /> <title>User Login</title> <link href="style.css" rel="stylesheet" type="text/css" /> <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> </head> <body> <?php $username=$_POST['txtUsername']; $password=$_POST['txtPassword']; if(!$row){ echo "<p>Loggin Error; echo("1to back to login page...</p>\n"); exit('<meta http-equiv="refresh" content="1;URL=login.php" />'); }else{ $_SESSION["MM_Username"]=$_POST["txtUsername"]; echo "<p>Login Successful"; echo("1 second to return to home page...</p>\n"); exit('<meta http-equiv="refresh" content="1;URL=index.php" />'); } }else{ ?> <form id="form1" name="form1" method="post" action=""> <div align="center"> <table width="345" border="0"> <tr> <td width="339">User Login</td> </tr> <tr> <td><span id="sprytextfield1"> <label> <input type="text" name="txtUsername" id="txtUsername" /> </label> <span class="textfieldRequiredMsg">Please enter your user name</span></span></td> </tr> <tr> <td><span id="sprytextfield2"> <label> <input type="password" name="txtPassword" id="txtPassword" /> </label> <span class="textfieldRequiredMsg">Please enter your password</span></span></td> </tr> <tr> <td><label> <input type="submit" name="btnLogin" id="btnLogin" value="Login" /> <input type="reset" name="btnReset" id="btnReset" value="Reset" /> </label></td> </tr> </table> </div> </form> <script type="text/javascript"> <!-- var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1"); var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2"); //--> </script> <?php } } ?> </body> </html>