Php 如何在我的网站上添加搜索框?

Php 如何在我的网站上添加搜索框?,php,html,Php,Html,如何添加一个使用谷歌搜索我网站页面的搜索框?如何显示结果或默认情况下google结果如何处理?来源: 将此代码复制并粘贴到HTML中 <!-- Use of this code assumes agreement with the Google Custom Search Terms of Service. --> <!-- The terms of service are available at http://www.google.com//cse/docs/tos.htm

如何添加一个使用谷歌搜索我网站页面的搜索框?如何显示结果或默认情况下google结果如何处理?

来源:

将此代码复制并粘贴到HTML中

<!-- Use of this code assumes agreement with the Google Custom Search Terms of Service. -->
<!-- The terms of service are available at http://www.google.com//cse/docs/tos.html -->
<form name="cse" id="searchbox_demo" action="https://www.google.com/cse">
  <input type="hidden" name="cref" value="" />
  <input type="hidden" name="ie" value="utf-8" />
  <input type="hidden" name="hl" value="" />
  <input name="q" type="text" size="40" />
  <input type="submit" name="sa" value="Search" />
</form>
<script type="text/javascript" src="https%3A%2F%2Fcse.google.com%2Fcse/tools/onthefly?form=searchbox_demo&lang="></script>


大家好,欢迎来到SO。这不是一个这样的问题。看一看关于如何提问和问什么的提示检查此页面谢谢。但是我没有得到结果(这将是我网站上的页面)。我得到一个空白的谷歌页面。