gwolgamott Posted March 16, 2010 Share Posted March 16, 2010 I'm not sure why I'm having issues with wrapping my head around this, but here's my problem I have a dynamic php site setup directed with requests. using the method below... if (!isset($_REQUEST['page'])) { $folder_page = "index/Home"; // Page has not been requested, show default page $page = 'index/Home/struct.php'; } else { // request page here $page = $_REQUEST['page']; $folder_page = '/index/'.$page; $page = ('index/'.$page.'/struct.php'); } // End if page has been requested // Check to see if page exists if (file_exists($page)) { // Page exists // Show page include("./$page"); } else { // Page doesn't exist echo 'Sorry, the page that you are trying to access does not exist.'; } // End if page exists Works fine and setup as it was wanted when I did that, now a search is wanted. I've got the search working, what my problem is is that I need to figure out how to make the search to be displayed as part of the main page. So as when the data is searched to display the results not as it's own page but within the dynamic page setup. But having issues sending the search then redirecting the information without screwing up the request url for the page. I think I'm over thinking this.... help please Link to comment https://forums.phpfreaks.com/topic/195429-search-in-a-dynamic-page/ Share on other sites More sharing options...
aeroswat Posted March 16, 2010 Share Posted March 16, 2010 I'm not exactly sure what you are trying to do but I think that session variables would come in handy here. You could do the search, store it in the session array, then display it on the dynamic page. Link to comment https://forums.phpfreaks.com/topic/195429-search-in-a-dynamic-page/#findComment-1026928 Share on other sites More sharing options...
gwolgamott Posted March 16, 2010 Author Share Posted March 16, 2010 That's exactly what I needed, thanks. Told not sure why I was having issues wrapping my head around it... DOH! ha. Thanks. Link to comment https://forums.phpfreaks.com/topic/195429-search-in-a-dynamic-page/#findComment-1026933 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.