+ -
当前位置:首页 → 问答吧 → html select option 如何提交命令

html select option 如何提交命令

时间:2011-07-27

来源:互联网

我想在 html 上面嵌入一个 select, 要的就是那种效果,当点击表单中的一个选项的时候,就能向 index.php 发送一个请求,也就是 index.php?ln=en

就是这个样子

作者: Eniak   发布时间: 2011-07-27

楼主这个意思?
HTML code

        <form method="get" action="index.php">
            <select name="numbers">
                <option value="1">1</option>
                <option value="2">2</option>
                <option value="3">3</option>
            </select>
            <input type="submit" />
        </form>

PHP code

$num = $_GET["numbers"]

作者: calmcrime   发布时间: 2011-07-27

select 的 onchange事件?

作者: lsw645645645   发布时间: 2011-07-27