【发布时间】:2011-04-07 21:16:24
【问题描述】:
我有一个为残疾学生构建的网站,用于搜索 YouTube,然后以可访问的格式显示结果。
我想显示本网站专用的前 5 个最受欢迎的搜索词。
使用文本输入表单提交搜索词 - 有没有办法将搜索词也提交到 mysql,然后显示最流行的?
或者更好的方法?
表单提交代码:
<fieldset class="search">
<form method="get" name="search" action="<?php echo
htmlentities($_SERVER['PHP_SELF']); ?>">
<input type="text" label="type here" class="box" name="v" placeholder="type here..."/>
<input type="submit" name="submit" value="Search"/>
</form>
</fieldset>
非常感谢,迈克
【问题讨论】:
标签: php mysql html forms search