I have been messing with this for a few days now and I have come to a dead end. I don't consider my self good at PHP coding. I have 4 "Select" elements and the names for them are sub[1] sub[2] sub[3] and sub[4]. I have a jQuery that displays the different one depending on the previous select element. In my PHP code I am trying to make it find the "sub" that the user has chosen from.

HTML:
PHP Code:
<div class="input-group item">
                  <
span class="input-group-addon">Type</span>
                      <
select id="type" name="type" class="form-control" onclick="typefunction(); itemstats(); Armor();">
                          <
option value="Any Type">Any Type</option>
                          <
option value="1-Hand">1-Hand</option>
                          <
option value="2-Hand">2-Hand</option>
                          <
option value="Armor">Armor</option>
                          <
option value="Off-Hand">Off-Hand</option>
                    </
select>
                </
div>
                <
div class="input-group item">
                  <
span class="1-Hand input-group-addon" style="display: none;">Sub-Type</span>
                    <
select class="1-Hand form-control" name="sub[1]" style="display: none;">
                          <
option value="All 1-Hand Item Types">All 1-Hand Item Types</option>
                          <
option>Axe</option>
                          <
option>Ceremonial Knife</option>
                          <
option>Hand Crossbow</option>
                          <
option>Dagger</option>
                          <
option>Fist Weapon</option>
                          <
option>Mace</option>
                          <
option>Mighty Weapon</option>
                          <
option>Spear</option>
                          <
option>Sword</option>
                          <
option>Wand</option>
                      </
select>
                      </
div>
                 
                 <
div class="input-group">
                  <
span class="2-Hand input-group-addon" style="display: none; ">Sub-Type</span>
                    <
select class="2-Hand form-control" name="sub[2]" style="display: none;">
                          <
option>All 2-Hand Item Types</option>
                          <
option>Two-Handed Axe</option>
                          <
option>Bow</option>
                          <
option>Diabo</option>
                          <
option>Crossbow</option>
                          <
option>Two-Handed Mace</option>
                          <
option>Two-Handed Mighty Weapon</option>
                          <
option>Polearm</option>
                          <
option>Staff</option>
                          <
option>Two-Handed Sword</option>
                      </
select>
                      </
div>

                  
                  <
div class="input-group">
                  <
span class="Armor input-group-addon" style="display: none;">Sub-Type</span>
                    <
select class="Armor form-control" name="sub[3]" style="display:none;">
                            <
option>All Armor Item Types</option>
                          <
option>Amulet</option>
                          <
option>Belt</option>
                          <
option>Boots</option>
                          <
option>Bracers</option>
                          <
option>Chest Armor</option>
                          <
option>Cloak</option>
                          <
option>Gloves</option>
                          <
option>Helm</option>
                          <
option>Pants</option>
                          <
option>Mighty Belt</option>
                          <
option>Ring</option>
                          <
option>Shoulders</option>
                          <
option>Spirit Stone</option>
                          <
option>Voodoo Mask</option>
                          <
option>Wizard Hat</option>
                      </
select>
                      </
div>
                
                <
div class="input-group">
                  <
span class="off input-group-addon" style="display: none;">Sub-Type</span>
                    <
select class="off form-control" name="sub[4]" style="display:none;">
                          <
option>All Off-Hand Item Types</option>
                          <
option>Mojo</option>
                          <
option>Source</option>
                          <
option>Quiver</option>
                          <
option>Shield</option>
                      </
select>
                      </
div
PHP:
PHP Code:
$subType $_POST['sub'][1];
$TwoHand $_POST['sub'][2];
$Armor $_POST['sub'][3];
if (
$subType == 'All 1-Hand Item Types') {
    
$Armor $subType;

JQuery:
PHP Code:
function typefunction() {
    var 
itemTypes jQuery('#type');
    var 
select this.value;
    
itemTypes.change(function() {
        if ($(
this).val() == '1-Hand') {
            $(
'.1-Hand').show();
            $(
'.2-Hand').hide();
            $(
'.off').hide();
            $(
'.Armor').hide();
        }
        else $(
'.1-Hand').hide();
        $(
'.off').hide();
        if ($(
this).val() == '2-Hand') {
            $(
'.2-Hand').show();
            $(
'.1-Hand').hide();
            $(
'.off').hide();
            $(
'.Armor').hide();
        }
        else $(
'.2-Hand').hide();
        $(
'.off').hide();
        if ($(
this).val() == 'Armor') {
            $(
'.Armor').show();
            $(
'.2-Hand').hide();
            $(
'.off').hide();
            $(
'.1-Hand').hide();
        }
        else $(
'.Armor').hide();
        $(
'.off').hide();
        if ($(
this).val() == 'Off-Hand') {
            $(
'.off').show();
            $(
'.2-Hand').hide();
            $(
'.1-Hand').hide();
            $(
'.Armor').hide();
        }
        else $(
'.off').hide();
    });