简体   繁体   English

HTML网站搜索表单

[英]HTML Website Search Form

I am trying to add an extra parameter to a website search form. 我正在尝试向网站搜索表单添加一个额外的参数。

http://jsfiddle.net/n8SVV/ http://jsfiddle.net/n8SVV/

What I have added is the first group of html code (Campus), but this does not appear to interact with the search in any meaningful way. 我添加的是第一组html代码(校园),但这似乎没有以任何有意义的方式与搜索交互。

Any suggestions? 有什么建议么?

If it's in the form and the search isn't affected, one of two things is going on: 如果它处于表单中并且搜索不受影响,那么将发生以下两种情况之一:

  • The script that handles submissions is expecting the campus to be specified in a different variable (maybe it expects "school_campus" or "campus_choice," etc) 处理提交的脚本期望在不同的变量中指定校园(也许期望“ school_campus”或“ campus_choice”等)
  • The script doesn't support a campus parameter. 该脚本不支持校园参数。

The root cause behind both cases is that you can't just throw data at a script and expect it to work. 两种情况背后的根本原因是,您不能只将数据扔到脚本上并期望它能工作。 What does the documentation for the campus search API say, if such a thing exists? 如果存在这种情况,校园搜索API的文档怎么说?

I don't even see a campus selection on the destination page, so I'm betting that your issue is the second one. 我什至没有在目标页面上看到校园选择,所以我敢打赌,您的问题是第二个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM