($printer) || ($printer=$query->cookie('printer')) ;
#set up cookie.....
+my $info = '';
my $branchcookie;
my $printercookie;
-unless ($query->cookie('branch')) {
+if ($query->param('setcookies')) {
$branchcookie = $query->cookie(-name=>'branch', -value=>"$branch", -expires=>'+1y');
-}
-unless ($query->cookie('printer')) {
$printercookie = $query->cookie(-name=>'printer', -value=>"$printer", -expires=>'+1y');
}
# make the issued books table.....
my $todaysissues='';
my $previssues='';
-my $info='';
if ($borrower) {
my $issueslist = getissues($borrower);
my $tcolor = '';
my $printeroptions;
foreach (keys %$branches) {
(next) unless ($_);
+ (next) unless ($branches->{$_}->{'IS'});
$branchcount++;
my $selected='';
($selected='selected') if ($_ eq $oldbranch);
$printerform
</td></tr>
</table>
-<input type="submit" value="Change Settings" type="changesettings">
+<input type="hidden" name="setcookies" value=1>
+<input type="submit" value="Submit" type="changesettings">
</form>
</center>