<form method="get" action="index.php" target="abc" name="SearchForm" id="SearchForm">
单击submit
后,我们将进入index.php
可以使用GET
方法访问键入的信息。target
、name
和id
在这里是什么意思?他们做什么?
快速的谷歌搜索可以回答这个问题。
http://www.w3schools.com/tags/tag_form.asp
<form
method="get" -- submit method (post|get)
action="index.php" -- page to submit form to
target="abc" -- frame id to target. ex: <iframe id="abc" src="myframe.html">
name="SearchForm" -- name of the form, used with client-side scripting
id="SearchForm" -- CSS id of the form. ex: #SearchForm { font-size: large; }
- used for client-side scripting (javascript)
- must be unique. <div id="abc"><p id="abc"> = invalid
/>