当前位置: 首页 > 图文教程 > 网络编程 > PHP > PHP4实际应用经验篇(1)
--------------------------------------------------------------------------------
<html>
<head>
<basefontface="宋体">
</head>
<body>
<center>
<formmethod="GET"action="login.php">
<tablecellspacing="5"cellpadding="5"border="0">
<tr>
<td>
<fontsize="-1">请问你的名字是?</font>
</td>
<tdalign="left">
<inputtype="text"name="name"size="10">
</td>
</tr>
<tr>
<tdcolspan="2"align="center">
<inputtype="submit">
</td>
</tr>
</table>
</form>
</center>
</body>
</html>
--------------------------------------------------------------------------------
整个页面最值得注意的是那个<FORM>标签
--------------------------------------------------------------------------------
<formmethod="GET"action="login.php">
...
</form>
--------------------------------------------------------------------------------
你可能已经知道了,<FORM>标签的ACTION属性值明确指定了将处理表单里输入的信息的服务器端脚本名-在这里是"login.php",而METHOD属性是说明信息将如何传送。
评论 (0) All