<!DOCTYPE html>
<html>
<head>
<title>SampleLogin</title>
<style>
.center {
margin: auto;
width: 50%;
height:60%;
border: 1px solid;
padding: 10px;
text: bold;
}
</style>
</head>
<body style="background-color:powderblue;>
<form action="dgdsg.php" method="post">
<fieldset class="center">
<legend>Login Details:</legend>
Username:<br>
<input type="text" name="firstname" ><br>
Password:<br>
<input type="text" name="lastname">
<br><br>
<input type="submit" value="Submit">
</fieldset>
</form>
上面的代码是登录表单。在这个表单标签中我提到的dgdsg.php文件不存在。我在运行时点击提交按钮后发现错误,但运行时没有发生任何事情。
Plz建议进行必要的修改。
答案 0 :(得分:0)
SearchAndResQ指出:
style="background-color:powderblue;
应该是
style="background-color:powderblue;"
完成上述更改后,它按预期工作。