Hello all, I hope someone can help me out here.

I am trying to improve a search box on a website, at the moment you can search by keyword but doing this looks at every word entered, if possible I want it to search for all keywords in any order so that the results page shows the most relevant results.

Example:
I search for "C4 envelope" and it returns 728 results with some results only having 'C4' in an others having 'envelope' in and I want it to only search for items containing both C4 and envelope.

Thank you for any help that you can offer.

Sorry for being so bad at explaining, here is my code for the search box:

<form name="searchform" method="get" action="<?php echo url_for("products/searchProduct",true);?>" style="margin-bottom:0px;">
<span id="searchCat">
<select name="search" id="search">

<option value="All" <?php echo ($id=="All")?"selected":"";?>>Everything</option>
<?php foreach($categoryArr as $key=>$value) { ?>
<option value="<?php echo $key;?>" <?php echo ($id==$key)?"selected":"";?>><?php echo $value;?></option>
<?php } ?>
</select>
<span class="selectRequiredMsg">Please select an item.</span></span>
<span id="searchfield">
<input type="text" placeholder="Search here..." name="searchfield" id="searchfield" value="<?php echo ($searchTxt=='All')?"":$searchTxt;?>"/>
</span>
<p>
<label>
<input name="searchWith" type="radio" value="exact" <?php echo ($searchWith=='exact')?'checked':'';?> />
Search as Phrase</label>
<label>
<input name="searchWith" type="radio" value="like" <?php echo ($searchWith=='like')?'checked':'';?> />
Search as Keywords</label>

</p>
<span> <span class="textfieldRequiredMsg">A value is required.</span>
<input type="submit" value="Search" id="searchbutt" name="searchbutt"/>
</span>
</form>