Php 以下表格将通过什么方式提交?(获取与发布)

Php 以下表格将通过什么方式提交?(获取与发布),php,web-deployment,Php,Web Deployment,以下表格将通过什么方式提交 <label for='name'>What's your name?</label> <input type='text' name='name' id='name> <button type='submit'>Submit</button> 你叫什么名字? 都不是 要使用方法u,应添加带有参数方法的标记 比如说 <form method="POST"> <lab

以下表格将通过什么方式提交

<label for='name'>What's your name?</label>

<input type='text' name='name' id='name>

<button type='submit'>Submit</button>
你叫什么名字?
都不是

要使用方法u,应添加带有参数
方法的标记

比如说

<form method="POST">
<label for='name'>What's your name?</label>

<input type='text' name='name' id='name>

<button type='submit'>Submit</button>
</form>

你叫什么名字?

您只提供了一个输入和一个提交按钮,这不足以向服务器提交数据。 鉴于上述情况,您的表格将不予提交。 要提交表单,它必须嵌套在
标记中 因此,应:

<form>
    <label for='name'>What's your name?</label>

    <input type='text' name='name' id='name>

    <button type='submit'>Submit</button>
</form>

你叫什么名字?

如果未指定,则默认方法为GET。此外,还可以使用字段中的form属性指定字段所属的表单。
<form method="POST">
    <label for='name'>What's your name?</label>

    <input type='text' name='name' id='name>

    <button type='submit'>Submit</button>
</form>