• I would like to create a drop-down menu inside my WordPress page that will return the results of a table in the WP database.

    The menu is like this:

    <p>
    <h2>Choose the State/Province</h2>
    <!--Jurisdiction Selection-->
    <select name = "Juris">
    <option value = 0>AB - Alberta</option>
    <option value = 1>Alberta Municipal</option>
    <option value = 2>Atlantic Provinces</option>
    <option value = 3>BC - British Columbia</option>
    <option value = 4>SK - Saskatchewan</option>
    <option value = 5>SK-Secondary/Municipal</option>
    <option value = 6>MB - Manitoba</option>
    <option value = 7>MB-Secondary</option>
    <option value = 8>ON - Ontario</option>
    <option value = 9>QC - Quebec</option>
    </select>
    </p>

    I think that I want to create a query of a table that I have created in the database that has “Juris” as a column name and the values as the row names. I want to return the values in the table. I have more information that I want to add in, so I can’t just make a separate page for each selection.

    Could anyone start to push me in the right direction for this?

  • The topic ‘Creating Custom Form that Queries WP Table’ is closed to new replies.