这些表单属性是什么意思


What do these form attributes mean?

<form method="get" action="index.php" target="abc" name="SearchForm" id="SearchForm">

单击submit后,我们将进入index.php可以使用GET方法访问键入的信息。targetnameid在这里是什么意思?他们做什么?

快速的谷歌搜索可以回答这个问题。

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
/>