= 2) { // check for submit if ($_SERVER['REQUEST_METHOD']=="POST" ) { $vlan_name = $_POST['vlan_name']; $vlan_number= $_POST['vlan_number']; mysql_query("INSERT INTO vlan (vlan_name, vlan_number) VALUE ('$vlan_name', '$vlan_number')") or die(mysql_error()); header("Location: vlan.php"); } ?>