我可以在表单外使用提交按钮,并且仍然在单击提交按钮时处理表单操作吗?下面是代码。我是编程新手。请帮我。
<body>
<input type="submit" name="submit" value="submit" />
<form action="" method="get" name="myform">
<table width="200" border="1" cellspacing="10">
<tr>
<td>Name</td>
<td><label for="name"></label>
<input type="text" name="name" id="name" /></td>
</tr>
<tr>
<td>email</td>
<td><label for="email"></label>
<input type="text" name="email" id="email" /></td>
</tr>
<tr>
<td>Group</td>
<td><input type="checkbox" name="IT" id="IT" />
IT
<input type="checkbox" name="ECE" id="ECE" />
<label for="ECE"></label>
ECE
<input type="checkbox" name="Mech" id="Mech" />
<label for="Mech"></label>
Mech</td>
</tr>
<tr>
<td>Hobbies</td>
<td><label for="hobbies"></label>
<input type="text" name="hobbies" id="hobbies" /></td>
</tr>
</table>
</form>
</body>