Hey guys
I've installed the free edition of Zoom but will definately be purchasing a few licenses IF i can sort this problem out. The way that my site's are designed normally involve an index.php page containing my template (persistent elements like header, nav and footer etc). A content DIV is then used to display my content and a small php script included to pull in the contents of the individual pages. This therefore means that my URLs would look something like this:
http://www.springmove.com/dev/index.php?page=search
Now, I've put the necessary search files on my server and linked to it using index.php?page=search and the form loads nicely (complete with my site's CSS and template rules). Unfortunately, when I click Search it simply jumps back to index.php You can see the effect by going to the above URL.
I'm guessing this is something to do with the way that I have designed the site, and the form action (self URL) is loading index.php and not getting any further. If I just load search.php and do a search it throws back results just fine!
Does anyone have any suggestions as to how I can get this working properly within my template? Preferably without a site redesign!
Here is the php code snippet to pull my pages into the template, just for reference:
<?php
$page = $_GET['page'];
if((!$page)||(empty($page))){
$page = "home";
}
include("$page.php");
?>
Any help would be greatly appreciated! Thanks in advance!
Mark
EDIT: After studying the URLs returning after doing a proper search and then trying it within my site, it seems that it is trying to pass the results to index.php and not search.php Is this at all fixable?
http://www.springmove.com/dev/index....=0&zoom_sort=0
http://www.springmove.com/dev/search...=0&zoom_sort=0
I've installed the free edition of Zoom but will definately be purchasing a few licenses IF i can sort this problem out. The way that my site's are designed normally involve an index.php page containing my template (persistent elements like header, nav and footer etc). A content DIV is then used to display my content and a small php script included to pull in the contents of the individual pages. This therefore means that my URLs would look something like this:
http://www.springmove.com/dev/index.php?page=search
Now, I've put the necessary search files on my server and linked to it using index.php?page=search and the form loads nicely (complete with my site's CSS and template rules). Unfortunately, when I click Search it simply jumps back to index.php You can see the effect by going to the above URL.
I'm guessing this is something to do with the way that I have designed the site, and the form action (self URL) is loading index.php and not getting any further. If I just load search.php and do a search it throws back results just fine!
Does anyone have any suggestions as to how I can get this working properly within my template? Preferably without a site redesign!
Here is the php code snippet to pull my pages into the template, just for reference:
<?php
$page = $_GET['page'];
if((!$page)||(empty($page))){
$page = "home";
}
include("$page.php");
?>
Any help would be greatly appreciated! Thanks in advance!
Mark
EDIT: After studying the URLs returning after doing a proper search and then trying it within my site, it seems that it is trying to pass the results to index.php and not search.php Is this at all fixable?
http://www.springmove.com/dev/index....=0&zoom_sort=0
http://www.springmove.com/dev/search...=0&zoom_sort=0
Comment