= 2) { // check for submit if ($_SERVER['REQUEST_METHOD']=="POST" ) { $vlan_id = $_POST['vlan_id']; $subnet_id = $_POST['subnet_id']; mysql_query("UPDATE subnet SET vlan_id='$vlan_id' WHERE subnet_id='$subnet_id'") or die(mysql_error()); header("location: vlan.php"); } $vlan_id = $_GET['vlan_id']; ?>
Assign to: