would be in the file before packages.php
include("../inc/application.php");
if ($_SERVER['REQUEST_METHOD'] == "POST") {
foreach ($_POST as $key => $value) ${$key} = $value;
$zipcode = "94549";
$zip = "94549";
$_SESSION['zipcode'] = "94549";
if (isset($zip)) {
$_SESSION['zipcode'] = $zipcode;
}
if (isset($edit)) {
$go = "review_order.php";
} else {
$go = "registration.php";
}
if (isset($package)) {
$_SESSION['package'] = $package;
}
if (isset($services)) {
if (isset($_SESSION['services'])) {
// loop over services that exist
/*foreach ($services as $new_id => $new_value) {
$exist = 0;
$add = 1;
foreach ($_SESSION['services'] as $service_id => $service_value) {
if ($service_value == $new_value) {
$add = 0;
}
}
if ($add) $_SESSION['services'][$new_value] = $new_value;
}*/
unset($_SESSION['services']);
foreach ($services as $new_id => $new_value) {
$_SESSION['services'][$new_value] = $new_value;
}
} else {
foreach ($services as $new_id => $new_value) {
$_SESSION['services'][$new_value] = $new_value;
}
}
} else {
unset($_SESSION['services']);
}
header("Location: $go");exit;
} else {
if (isset($_GET['zipcode'])) {
if (is_numeric($_GET['zipcode'])) {
$_SESSION['zipcode'] = $_GET['zipcode'];
}
}
}
?>
<?
$bc = array(
array(0=>'HOME',1=>'/index.php'),
array(0=>'SELLER',1=>'/seller/index.php'),
array(0=>'PACKAGES')
);
$pagetitle = $pagetitle." Marketing Packages List";
$keywords = "online marketing packages,for sale by owner,sell home,selling my home,mls,online search,featured home";
$description = "the one online real estate website you need to list your for sale by owner (FSBO) listing and have your house viewed by thousands of potential buyers";
$national = array(
array('price'=>'69.00'),
array('price'=>'159.00'),
array('price'=>'189.00'),
array('price'=>'320.00')
);
$ca = array(
array('price'=>'69.00'),
array('price'=>'159.00'),
array('price'=>'320.00'),
array('price'=>'1450.00')
);
//$ziplookup = oneRow("SELECT * FROM locations WHERE zipcode = ".$_SESSION['zipcode']);
$location = $ziplookup['state'];
if (isset($_GET['state'])) {
if ($_GET['state'] == "CA") {
$location = "CA";
} else {
$location = "";
}
}
if ($location == "CA") {
$prices = $ca;
} else {
$prices = $national;
}
$packages = array(
1=>array('item_id'=>1,'view_price'=>'$69.00 / mo','price'=>'69.00','title'=>'GROUP 1 - Check the Market','trans_type'=>'recur','trans_freq'=>'1month','purchase_type'=>'package'),
2=>array('item_id'=>2,'view_price'=>'$159.00 / 3 mo','price'=>'159.00','title'=>'GROUP 1 - Check the Market','trans_type'=>'recur','trans_freq'=>'3month','purchase_type'=>'package'),
3=>array('item_id'=>3,'view_price'=>'$320.00','price'=>'320.00','title'=>'GROUP 2 - Sell It Soon','trans_type'=>'onetime','trans_freq'=>'','purchase_type'=>'package'),
4=>array('item_id'=>4,'view_price'=>'$1450.00','price'=>'1450.00','title'=>'GROUP 3 - Sell It NOW','trans_type'=>'onetime','trans_freq'=>'','purchase_type'=>'package')
);
$services = array(
//1=>array('price'=>'79.00','title'=>'Monthly Online Listing','trans_type'=>'onetime','trans_freq'=>''),
2=>array('item_id'=>5,'price'=>'37.00','title'=>'(1) 18x24" Custom Lawn Sign','trans_type'=>'onetime','trans_freq'=>'','purchase_type'=>'service'),
3=>array('item_id'=>6,'price'=>'28.00','title'=>'(3) 12x18" Custom Directional Signs','trans_type'=>'onetime','trans_freq'=>'','purchase_type'=>'service'),
4=>array('item_id'=>7,'price'=>'65.00','title'=>'(1) Lawn and (3) Directional Signs','trans_type'=>'onetime','trans_freq'=>'','purchase_type'=>'service'),
5=>array('item_id'=>8,'price'=>'250.00','title'=>'6 Month Listing - Realtor.com / MLS','trans_type'=>'onetime','trans_freq'=>'','purchase_type'=>'service'),
6=>array('item_id'=>9,'price'=>'120.00','title'=>'Online Virtual Tour','trans_type'=>'onetime','trans_freq'=>'','purchase_type'=>'service'),
7=>array('item_id'=>10,'price'=>'100.00','title'=>'Search Engine "Featured Home"','trans_type'=>'onetime','trans_freq'=>'','purchase_type'=>'service'),
8=>array('item_id'=>11,'price'=>'300.00','title'=>'Onsite Visit (San Diego only)','trans_type'=>'onetime','trans_freq'=>'','purchase_type'=>'service'),
9=>array('item_id'=>12,'price'=>'999.00','title'=>'Paperwork Assistance','trans_type'=>'onetime','trans_freq'=>'','purchase_type'=>'service')
);