<?php
//что показывать
#brovser
if (!empty($_POST['brovser']) == 0) $_SESSION['brovser'] = FALSE;
else $_SESSION['brovser'] = 'checked="checked"';
#number
if (!empty($_POST['number']) == 0) $_SESSION['number'] = FALSE;
else $_SESSION['number'] = 'checked="checked"';
#os
if (!empty($_POST['os']) == 0) $_SESSION['os'] = FALSE;
else $_SESSION['os'] = 'checked="checked"';
#operator
if (!empty($_POST['operator']) == 0) $_SESSION['operator'] = FALSE;
else $_SESSION['operator'] = 'checked="checked"';
#country
if (!empty($_POST['country']) == 0) $_SESSION['country'] = FALSE;
else $_SESSION['country'] = 'checked="checked"';
#country2
if (!empty($_POST['country2']) == 0) $_SESSION['country2'] = FALSE;
else $_SESSION['country2'] = 'checked="checked"';
echo '<form action="" method="post">
<input name="number" type="checkbox" value="1" '.$_SESSION['number'].' /> №
<input name="brovser" type="checkbox" value="1" '.$_SESSION['brovser'].' /> Браузер
<input name="os" type="checkbox" value="1" '.$_SESSION['os'].' /> ОС
<input name="operator" type="checkbox" value="1" '.$_SESSION['operator'].' /> Оператор
<input name="country" type="checkbox" value="1" '.$_SESSION['country'].' /> Страна д.
<input name="country2" type="checkbox" value="0" '.$_SESSION['country2'].' /> Страна к.
<input type="submit" name="submitView" value=">>" /></form>
';
?>