Thank You Very Much!
It worked like a charm!
So for anyone who finds this page via google
to pull a variable out of the URL such as http://mibearings.com/search/search.php?query=Chevy&search=1
To pull the word Chevy out,
you will need the code
<script type="text/javascript">
window.$_GET=(function(){
var get_array=new Object();
if(!location.search)return get_array;
var p=location.search.replace(/\+/g,"%20").substr(1).split("&"),l=p.length;
for(var i=0,t;i<l;i++){
t=p[i].split("=");
if(!t[0])t[0]="";
if(!t[1])t[1]="";
t[0]=decodeURIComponent(t[0]);
t[1]=decodeURIComponent(t[1]);
get_array[t[0]]=t[1];
}
return get_array;
})();
</script>
and where ever you place
<?php echo $_GET['query']; ?>
you will be returned with Chevy, or whatever your text is after =
To change what you are pulling the text from simply replace the query with whatever you need.
thanks again coldwerturkey