-3

次のフォームで [送信] をクリックすると、ユーザー名、パスワード、および年齢の値のみが registration.php に送信されます。

<div style="top:250;left:620;position:absolute;"> <H3> Registration : </H3> </div> 
<form action="Registration.php" method="Post">
<div style="top:300;left:550;position:fixed;"> <H3> Username </H3> </div><input type="Text" name="UserName" style="position:fixed; top:320; left: 675; width:150px; height:25px"><br>
<div style="top:350;left:550;position:fixed;"> <H3> Password </H3> </div><input type="Password" name="Password" style="position:fixed; top:370; left:675; width:150px; height:25px"><br>
<div style="top:400;left:550;position:fixed;"> <H3> Email Address </H3> </div> <input type="Email" name="Email" style="position:fixed; top:420;left:675;width:150px;height:25px;"><br>
<div style="top:450;left:550;position:fixed;"> <H3> First Name </H3> </div> <input type="Text" name="Fname" style="position:fixed;top:470;left:675;witdh:150px;height:25px;"><br>
<div style="top:500;left:550;position:fixed;"> <H3> Last Name </H3> </div> <input type="Text" name="Lname" style="position:fixed;top:520;left:675;witdh:150px;height:25px;"><br>
<div style="top:550;left:550;position:fixed;"> <H3> Age </H3> </div> <input type="Number" name="Age" style="position:fixed;top:570;left:675;witdh:150px;height:25px;"><br>
<input type="submit" name="fSubmit" value="Registration" style="top:600;left:550;position:fixed;width:100px;height:50px"/>
</form>

残りのフィールドが送信されていない理由を誰か教えてもらえますか?

4

3 に答える 3

3

あなたには;アフターがありinput type="text"ます。=以前はありませんでしたfSubmit

更新: スタイルにあるwitdh=150px必要があります。width:150pxそれ以外の場合は、3 つの入力フィールドemaillastnameおよびが壊れfirstnameます。

何もする必要はありません:top各数値の後に文字列を指定leftする必要があります。px

于 2013-05-20T18:37:34.127 に答える
0

HTML の5 行目でエラーが発生している可能性があります。

 <div style="top:400;left:550;position:fixed;"><h3> Email Address </h3></div><input type="Text";name="Email" style="position:fixed; top:420; left:675; width:150px; height:25px;"><br>

;との間のセミコロン文字を削除する必要がtype="Text"ありname="Email"ます。

これにより、HTMLが壊れる可能性があると思います。

于 2013-05-20T18:43:41.440 に答える