Hello Friends,
I am having trouble figuring out how to get me Radio Buttons to search my database. Everything is up on the page and when I select enter it just shows all the items as if nothing was entered. There was already a set search button in the script that let's you type keywords typed in, I am trying to get the grid of radio buttons to do the same thing with the appointed name for the button to be search for. Can Someone Help Please?
This is the code for the search with the keyword typed:
<form name="frmsearch" id="frmsearch" method="get" action="search.php">
<div align="right">
<input name="q" type="text" class="date" id="q" value="[|keyword|]" size="25" maxlength="50" />
<input name="Search" type="submit" class="date" id="Search" value="Search" />
</div>
</form>
And this is the code I have for the Search Grid tables:
<div id="searchAmenFirst">
<div id="blueHeadMd">
<div id="blueHeadLeft">
<p><strong>Beds/Baths:</strong>
<label class="searchLabelSm" for="beds">Beds</label>
<select id="beds" class="searchDropSm" name="beds" ="beds" onchange="javascript:get_Area_Count()">
<option value="-200" selected="selected">Any </option>
<option value="Studio">Studio </option>
<option value="1Bedroom">1Bedroom</option>
<option value="2Bedrooms">2Bedrooms</option>
<option value="3Bedrooms">3Bedrooms</option>
<option value="4Bedrooms">4Bedrooms</option>
<option value="5+Bedrooms">5+Bedrooms</option>
</select>
<label class="searchLabelSm" for="baths">Baths</label>
<select id="beds" class="searchDropSm" name="baths" ="baths" onchange="javascript:get_Area_Count()">
<option value="Bath" selected="selected">Any </option>
<option value="1Bath">1Bath</option>
<option value="1.5Bath">1.5Bath </option>
<option value="2Bath">2Bath </option>
<option value="2.5Bath">2.5Bath </option>
<option value="3Bath">3Bath </option>
<option value="3.5Bath">3.5Bath </option>
<option value="4+Bath">4+Bath </option>
</select>
</p>
<p> </p>
</div>
<h4 class="boxHead" id="Apartment Features">Apartment Features<font color="#FFFFFF"> -----------</font>Community Features<font color="#FFFFFF">------</font>Pets</h4>
</div>
<div id="searchAmenCont">
<input class="frmsearch" type="checkbox" id="Air Conditioning" name="Air Conditioning" value="Air_Conditioning" />
<label class="searchChLabel" for="Air_Conditioning">Air Conditioning</label>
<font color="#FFFFFF">--
------
-</font>
<input class="searchCheck" type="checkbox" id="amenity[]2" name="amenity[]2" value="Controlled_Access" />
<label class="searchChLabel" for="Controlled_Access">Controlled Access</label>
<font color="#FFFFFF">-----</font>
<input class="searchCheck" type="checkbox" id="amenity[]11" name="amenity[]11" value="All_Dogs_Allowed" />
<label class="searchChLabel" for="All_Dogs_Allowed">All Dogs Allowed</label>
<br class="clear" />
<input class="searchCheck" type="checkbox" id="amenity[]" name="amenity[]" value="Alarm_System" />
<label class="searchChLabel" for="Alarm_System">Alarm System</label>
<font color="#FFFFFF">----
------
-</font>
<input class="searchCheck" type="checkbox" id="amenity[]3" name="amenity[]3" value="Disability_Access" />
<label class="searchChLabel" for="Disability_Access">Disability Access</label>
<font color="#FFFFFF">-------</font>
<input class="searchCheck" type="checkbox" id="amenity[]12" name="amenity[]12" value="Cats_Allowed" />
<label class="searchChLabel" for="Cats_Allowed">Cats Allowed</label>
<br class="clear" />
<input class="searchCheck" type="checkbox" id="amenity[]" name="amenity[]" value="Cable_or_Satellite" />
<label class="searchChLabel" for="Cable_or_Satellite">Cable or Satellite</label>
<font color="#FFFFFF">---------</font>
<input class="searchCheck" type="checkbox" id="amenity[]4" name="amenity[]4" value="Fitness_Center" />
<label class="searchChLabel" for="Fitness_Center">Fitness Center</label>
<font color="#FFFFFF">------- --</font>
<input class="searchCheck" type="checkbox" id="amenity[]13" name="amenity[]13" value="Pets_Allowed" />
<label class="searchChLabel" for="Pets_Allowed">Pets Allowed</label>
<br class="clear" />
<input class="searchCheck" type="checkbox" id="amenity[]" name="amenity[]" value="Dishwasher" />
<label class="searchChLabel" for="Dishwasher">Dishwasher</label>
<font color="#FFFFFF">------------- -</font>
<input class="searchCheck" type="checkbox" id="amenity[]5" name="amenity[]5" value="Garages" />
<label class="searchChLabel" for="Garages">Garages</label>
<font color="#FFFFFF">----------------</font>
<input class="searchCheck" type="checkbox" id="amenity[]14" name="amenity[]14" value="Small_Dogs_Allowed" />
<label class="searchChLabel" for="Small_Dogs_Allowed">Small Dogs Allowed</label>
<br class="clear" />
<input class="searchCheck" type="checkbox" id="amenity[]" name="amenity[]" value="Fireplace" />
<label class="searchChLabel" for="Fireplace">Fireplace</label>
<font color="#FFFFFF">-----------------</font>
<input class="searchCheck" type="checkbox" id="amenity[]6" name="amenity[]6" value="Golf Course" />
<label class="searchChLabel" for="Golf Course">Golf Course</label>
<font color="#FFFFFF">------------</font>
<input class="searchCheck" type="checkbox" id="amenity[]15" name="amenity[]15" value="No_Pets" />
<label class="searchChLabel" for="Small_Dogs_Allowed">No Pets</label>
<br class="clear" />
<input class="searchCheck" type="checkbox" id="amenity[]" name="amenity[]" value="Furnished_Available" />
<label class="searchChLabel" for="Furnished_Available">Furnished Available</label>
<font color="#FFFFFF">------</font>
<input class="searchCheck" type="checkbox" id="amenity[]7" name="amenity[]7" value="Laundry_Facility" />
<label class="searchChLabel" for="Laundry_Facility">Laundry Facility</label>
<br class="clear" />
<input class="searchCheck" type="checkbox" id="amenity[]" name="amenity[]" value="Patio_or_Balcony" />
<label class="searchChLabel" for="Patio_or_Balcony">Patio or Balcony</label>
<font color="#FFFFFF">---------</font>
<input class="searchCheck" type="checkbox" id="amenity[]8" name="amenity[]8" value="Playground" />
<label class="searchChLabel" for="Playground">Playground</label>
<br class="clear" />
<input class="searchCheck" type="checkbox" id="amenity[]" name="amenity[]" value="Washer_Dryer_Hookup" />
<label class="searchChLabel" for="Washer_Dryer_Hookup">Washer Dryer Hookup</label>
<font color="#FFFFFF">- -</font>
<input class="searchCheck" type="checkbox" id="amenity[]9" name="amenity[]9" value="Pool" />
<label class="searchChLabel" for="Pool">Pool</label>
<br class="clear" />
<input class="searchCheck" type="checkbox" id="amenity[]" name="amenity[]" value="Washer_Dryer_In_Unit" />
<label class="searchChLabel" for="Washer_Dryer_In_Unit">Washer Dryer In Unit</label>
<font color="#FFFFFF">---- </font>
<input class="searchCheck" type="checkbox" id="amenity[]10" name="amenity[]10" value="Short_Term_Lease" />
<label class="searchChLabel" for="Short_Term_Lease">Short Term Lease</label>
<div align="center" id="searchSubmitMain">
<form name="frmsearch" id="frmsearch" method="get" action="search.php"><input name="submit" type="image" onclick="return validate_areasearch();" src="../btn_searchrentals.png" alt="Search Apartments" width="158" height="32" border="0" />
</form></div>
<br class="clear" />
</div>
</div>