lundi 19 juillet 2021

How to select an option from a dropdown and submit in php and retrieve data belongs to the specific ID?

In the following dropdown I need to select an option it in and send them to https://myfees.lk/?schoolid={id} where the id has to be retrieved from the dropdown value using php, Can someone please guide me on how to do it?

<div class="container_form">
            <select id="schoolToPay" name="school" class="schools_dropdown" class="sel text-box select2-box" required onchange="checkForPayment()"><span class="glyphicon glyphicon-chevron-down" aria-hidden="true"></span>
                <option value="0">Search/ Select Institute</option>
                <option value="87" is_amex_enable="">
                    (AOD) Academy of Design
                </option>
                <option value="90" is_amex_enable="">
                    Academy of Early Childhood Development Studies - AECD Studies
                </option>
                <option value="40" is_amex_enable="1">
                    Wycherley International School - Colombo
                </option>
                <option value="46" is_amex_enable="1">
                    Wycherley International School - Gampaha
                </option>
            </select>
            <button class="selection_submit">Next</button>
        </div>



Aucun commentaire:

Enregistrer un commentaire