From 7322231d3e91d9728ad3d507e3f90d9c19822457 Mon Sep 17 00:00:00 2001 From: Thomas Hooge Date: Mon, 13 Feb 2023 09:10:12 +0100 Subject: [PATCH] Some small changes/fixes --- assignsubnettolocation.php | 2 +- assignvlantosubnet.php | 4 ++-- header.php | 6 ++++++ index.php | 2 +- location.php | 2 +- search.php | 2 +- subnetedit.php | 2 +- vlanview.php | 2 +- 8 files changed, 14 insertions(+), 8 deletions(-) diff --git a/assignsubnettolocation.php b/assignsubnettolocation.php index 29ea59c..362cd1a 100644 --- a/assignsubnettolocation.php +++ b/assignsubnettolocation.php @@ -11,7 +11,7 @@ mysql_query("INSERT INTO subnetlocation (location_id, subnet_id) VALUE ('$location_id', '$subnet_id')") or die(mysql_error()); - header("Location: subnet.php"); + header("Location: subnetview.php?subnet_id=" . $subnet_id); } $subnet_id = $_GET['subnet_id']; diff --git a/assignvlantosubnet.php b/assignvlantosubnet.php index 4744d47..0fadbb3 100644 --- a/assignvlantosubnet.php +++ b/assignvlantosubnet.php @@ -11,7 +11,7 @@ mysql_query("UPDATE subnet SET vlan_id='$vlan_id' WHERE subnet_id='$subnet_id'") or die(mysql_error()); - header("location: vlan.php"); + header("location: vlanview.php?vlan_id=" . $vlan_id); } $vlan_id = $_GET['vlan_id']; @@ -28,7 +28,7 @@ +