当用户提交该表单后,脚本首先检查是否输入了一个或多个搜索关键字,如果一个也没有输入,则中断脚本处理并显示一条错误消息。
Once the user submits this form, the script first checks whether one or more search keywords were entered, and halts script processing with an error message if it finds none.
我们来看一个简单的HTML表单,它向本地机器上假想的查询引擎提交一个搜索字符串(如清单1所示)。
Let's take a look at a simple HTML form that submits a search string to an imaginary query engine running on your local machine (see Listing 1).
表单是在这个对话中提交的,下一页列出搜索结果。
In this conversation, the form is submitted and the next page lists the search results.
清单7停止默认动作执行(阻止表单提交到服务器),然后验证是否选择了搜索引擎。
Listing 7 stops the default action from running (it prevents the form from submitting to the server) and then validates that a search engine has been selected.
对于这些搜索表单,由一个数据库视图列出查询发起者、查询提交的日期和时间以及查询所包括的关键词。
A database view of these search forms is provided that lists the author of the query, the date and time the query was submitted and the keywords used in the query.
另一方面,如果用户通过提交整个表单进行重复的搜索,该技术将节省很多流量。
On the other hand, if the user is searching repeatedly by Posting the entire form, this technique can actually save some amount of traffic.
最后,提交表单时,php脚本将创建Lucene搜索索引,并使用目录中具有匹配扩展名的所有文件对其进行填充。
Eventually when the form is submitted, the PHP script will create a Lucene search index and populate it with all the files in the directory that have a matching extension.
在搜索文本框中输入字符串HttpUnit Home,并提交表单。
Enter the string HttpUnit Home into the search text box and submit the form.
一旦该表单被提交,脚本就会创建一个新的buzz对象,并将搜索条件传递给对象的search()方法。
Once this form is submitted, the script creates a new buzz object and passes the search terms to the object's search() method.
它所关注的是只要搜索词来自于一个正常的表单提交过程,它就使用该数据来完成查询,然后返回匹配该搜索词的那些记录。
As far as it's concerned, the search term comes from an ordinary form submit process, and it USES that data to complete a query, then return the records that match that term.
第二个表单是实际的搜索表单,用来提交查询并显示搜索结果。
The second is the actual search form used for submitting queries and displaying search results.
但是,由于这个示例中的搜索表单使用GET方法提交数据,当前url通常会包含一列其他搜索参数。
However, since the search form in this case submits data using the GET method, the current URL will usually contain a list of additional search parameters.
当搜索按钮被按下或表单被提交时触发的方法。
Methods that trigger when the search button is pressed or the form is "submitted".
例如,一个普通的GoogleWeb搜索对服务器只有一个请求,是在用户提交搜索表单时出现的。
For instance, a regular Google Web search causes one hit on the server, occurring when the user submits the search form.
提交表单没有这个代码工作,尽管这只是因为我运行的搜索已经足够明确。
Submitting the form without this code works, though that is only because the search I am running is already definite enough.
整个学习过程包括识别搜索表单,填充并提交表单,从返回页面中获取所需的结果页面。
The whole learning process includes identifying search form, filling in and submitting search form, fetching result pages from return pages.
深度网络中的信息隐藏在网页搜索框背后,用户必须以向网页表单提交查询词的形式才能获取信息。
While deep web information hidden behind the web search box, the user must submit queries in the web form to obtain the information.
深度网络中的信息隐藏在网页搜索框背后,用户必须以向网页表单提交查询词的形式才能获取信息。
While deep web information hidden behind the web search box, the user must submit queries in the web form to obtain the information.
应用推荐