Home >Web Front-end >HTML Tutorial >Implementation method of html input drop-down menu_HTML/Xhtml_Web page production

Implementation method of html input drop-down menu_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:36:421756browse

复制代码
代码如下:






echo '







';
$aa=$_GET['hh']."111"; // select 下拉菜单的值
$bb=$_GET['box']."222"; // 输入框的值
echo $aa;
echo "
";
echo $bb;
// 要获得可输入下拉菜单的值,只要获得输入框的值即可。
?>


 

要获得可输入下拉菜单的值,只要获得输入框的值即可。

注意:

这行要在一行中,不能写成





换行了之后则下拉菜单的值不能显示在 输入框中。

还可以根据输入的内容自动选择匹配的菜单值。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn