Help with adding cascading to my drop-down-list

Discussion in 'PHP' started by chrisj, Jul 13, 2016.

  1. #1
    I have this drop-down list that works successfully, when someone wants to search by keyword, channel or All. I'd like to add the ability where someone can search by sub-channel.

    <form method="get" action="../search.php" name="myForm" />
    <input autocomplete="off" id="keyword" name="keyword" value="SEARCH WORDS" onfocus="if (this.value=='SEARCH WORDS') {this.value=''; this.style.color='#696969';}" onclick="clickclear(this, 'Search [var.site_name]')" onblur="clickrecall(this,'Search [var.site_name]')" value="" />
    <select size="1" name="type" class="dropdown_box" />
    <option value="All">All Videos</option>
    <option value="1">Channel-1</option>
    <option value="2">Channel-2</option>
    <input type="submit" value="VIEW"/>
    </div>
    </select>
    </form>
    Code (markup):
    A user/uploader can upload a video to a channel, and select a sub-channel, but currently can't search by sub-channel.

    How can I add code so that someone can select a sub-channel under each channel?

    Thanks for any help.
     
    chrisj, Jul 13, 2016 IP