I need help changing the {Value} on my site if you go look at the site http://wwwpassionatehearts.net you will see a drop box (State) with countries in the feilds. I need to change the options to states. I was able to fix the age but only because it was poted as you can see in bold. Here is a copy of the coding. Any help would be truly appreciated. Thank You
if ($flds_gallery=='on')
$tpl->set_var("g_checked", "CHECKED" );
else
$tpl->set_var("g_checked", "" );
$tpl->set_var("SearchLBseek", "");
$db->query("select * from searches");
while ($db->next_record())
{
$lookup_seek[$db->f("var")] = $db->f("value");
}
if(is_array($lookup_seek))
{
reset($lookup_seek);
while(list($key, $value) = each($lookup_seek))
{
$tpl->set_var("ID", $key);
$tpl->set_var("Value", $value);
if($key == $flds_seek)
$tpl->set_var("Selected", "SELECTED" );
else
$tpl->set_var("Selected", "");
$tpl->parse("SearchLBseek", true);
}
}
$tpl->set_var("SearchLBcountry", "");
$db->query("select * from countries");
while ($db->next_record())
{
$lookup_country[$db->f("code")] = $db->f("name");
}
if(is_array($lookup_country))
{
reset($lookup_country);
while(list($key, $value) = each($lookup_country))
{
$tpl->set_var("ID", $key);
$tpl->set_var("Value", $value);
if($key == $flds_country)
$tpl->set_var("Selected", "SELECTED" );
else
$tpl->set_var("Selected", "");
$tpl->parse("SearchLBcountry", true);
}
}
for ($i=18;$i<=74;$i++)
{
$lookup_age[$i]=$i;
}
if(is_array($lookup_age))
{
reset($lookup_age);
while(list($key, $value) = each($lookup_age))
{
$tpl->set_var("ID", $key);
$tpl->set_var("Value", $value);
if($key == $flds_age_from)
$tpl->set_var("Selected", "SELECTED" );
else
$tpl->set_var("Selected", "");
$tpl->parse("SearchLBage_from", true);
}
}
if(is_array($lookup_age))
{
reset($lookup_age);
while(list($key, $value) = each($lookup_age))
{
$tpl->set_var("ID", $key);
$tpl->set_var("Value", $value);
if(($key == $flds_age_to) or (($flds_age_to=='') and ($key==70)))
$tpl->set_var("Selected", "SELECTED" );
else
$tpl->set_var("Selected", "");
$tpl->parse("SearchLBage_to", true);
}for ($i=18;$i<=74;$i++)