I've got a few pages with different searches on them and a main page where I want to aggregate them all using includes. I have one section that parses the search term, another section that puts the urls for the 3 search pages in an array and another that displays the includes randomly. The problem I am having is that I can't add the search phrase on to the array properly and instead end up with "search.php?query=$search_phrase;" instead of the right value for $search_phrase, which would be whatever the user puts in.
$expl = explode("/",$HTTP_SERVER_VARS["REQUEST_URI"]);
$search_phrase = $expl[count($expl)-1];
$include_files = array('search1.php?query=$search_phrase;','search2.php?query=$search_phrase;','search3.php?query=$search_phrase;',);
for ( $i = 0; $i < 3; $i++ )