我有表单,我想通过multipart / form-data发布。 如何使用html指定每个字段'类型。
<html>
<head>
<title>
New Student
</title>
</head>
<body>
<form action="http://10.128.157.12:8080/student" method="post" enctype="multipart/form-data">
student first name: <input type="text" size="100" name="firstname" value="Michael"/><br>
student last name: <input type="text" size="100" name="lastname" value="William"/><br>
student age: <input type="text" size="100" name="age" value="34" /> <br>
<input type="submit" value="Submit" autofocus="autofocus" />
</form>
</body>
</html>