function formvar($var,$default) {
if (isset($_GET[$var])) {
$ret=$_GET[$var];
setcookie($var,$_GET[$var]);
}
else
if (isset($_COOKIE[$var]))
$ret=$_COOKIE[$var]; else $ret=$default;
return $ret;
}
$net=formvar('net','172.17');
$dst=formvar('dst','ether1-200MB-WAN');
$parent=formvar('parent','TELECOM 200MB');
$bw=formvar('bw','6M');