<html>
<head>
<title>Answer</title>
</head>
<body>
<BODY bgcolor="#0099CC">
<?php
$bitsOne = filter_input(INPUT_GET,"bitsOne");
print "<h3>You Selected, $bitsOne , bits!</h3>";
$bits = (1,6)
if ( $bits == 1) {
print "You Chose 1 Bits";
"There are 126 Hosts Per Subnet";
"There are 2 Maximum Subnets";
}
if ( $bits == 2) {
print "You Chose 2 Bits";
"There are 62 Hosts Per Subnet";
"There are 4 Maximum Subnets" ;
}
if ( $bits == 3) {
print "You Chose 3 Bits";
"There are 30 Hosts Per Subnet";
"There are 8 Maximum Subnets"
}
if ( $bits == 4) {
print "You Chose 4 Bits";
"There are 14 Hosts Per Subnet";
"There are 16 Maximum Subnets";
}
if ( $bits == 5) {
print "You Chose 5 Bits";
"There are 6 Hosts Per Subnet";
"There are 32 Maximum Subnets" ;
}
if ( $bits == 6) {
print "You Chose 6 Bits";
"There are 2 Hosts Per Subnet";
"There are 64 Maximum Subnets" ;
}
?>
</body>
</html>