php 根据用户选择的答案选择具体方案(答案

3bygqnnd  于 2022-12-25  发布在  PHP
关注(0)|答案(1)|浏览(193)

有20多个选项,用户需要选择,并根据所选选项需要返回特定答案。我如何筛选用户选择的选项并显示适当的答案

<html>
    <head>
        <title>WEB Plan</title>
    </head>
    <body>
        <h1 align="center">Plan Calculator</h1>
        <hr>
        <form align="center">
            Question Type : How many devices are using the internet?
            <select>
                <option>How many devices are using the internet?</option>
                <option id="internet_use" value="4">1-4</option>
                <option id="internet_use" value="10">5-10</option>
                <option id="internet_use" value="15">10-15</option>
                <option id="internet_use" value="20">15+</option>
            </select><br>
            Question Type : How often do you video conference?
            <select>
                <option>How often do you video conference?</option>
                <option id="video" value="Daily">Daily</option>
                <option id="video" value="Weekly">Weekly</option>
                <option id="video" value="Rarely">Rarely</option>
            </select><br>
            Question Type : Does your household game online?
            <select>
                <option>Does your household game online?</option>
                <option id="game" value="Daily">Daily</option>
                <option id="game" value="Weekly">Weekly</option>
                <option id="game" value="Rarely">Rarely</option>
            </select>
        </form>
        <!-- <div>
            Suggested Plan : ....
        </div> -->
    </body>
</html>
fumotvh3

fumotvh31#

JQuery:创建一个函数,根据过滤器返回[,...]。不根据过滤器进行渲染。

相关问题