I operate a real estate directory site.
Trouble of the day: Cannot get my Back URL to go back to the previous page with all the user' search criteria still there. It goes back to the page and they have to fill their criteria again.
Example: They pick Fiji and Islands For Sale, get a listing of Fiji islands, pick one, look at it, click on Back, return to search page but they have to reenter Fiji and Islands For sale.
My current code on my details.php:
$a = getenv('HTTP_REFERER');
//echo"hererer".$a."<br>";
$pos =strpos($a,"qualify_search");
if($pos<>""){
$bck_url="qualify_search.php?listid=$record[listingid]&region_id=$_REQUEST[region_id]&property_type=$_REQUEST[property_type]&country_id=$_REQUEST[country_id]&state_id=$_REQUEST[state_id]&maxprice=$_REQUEST[maxprice]&minprice=$_REQUEST[minprice]&keywordtxt=$_REQUEST[keywordtxt]&option_page=$_REQUEST[option_page]";
}
//echo"position".$pos;
//$baray=explode("/",$a);
/*
switch($baray[4]){
case"qualify_search.php":
$bck_url="qualify_search.php?listid=$record[listingid]&region_id=$_REQUEST[region_id]&property_type=$_REQUEST[property_type]&country_id=$_REQUEST[country_id]&state_id=$_REQUEST[state_id]&maxprice=$_REQUEST[maxprice]&minprice=$_REQUEST[minprice]&keywordtxt=$_REQUEST[keywordtxt]";
break;
}
It seems simple enough. What is wrong with me today?
Thanks for your help.
Natasha:?: