From 4ccec83ed180095fb4912027aed1eb9572c5db5d Mon Sep 17 00:00:00 2001 From: Robert Anderson <randerson@lbsd.net> Date: Thu, 30 Apr 2009 11:36:06 +0000 Subject: [PATCH] Remved $_SESSION, replaced with $_POST --- webui/group-attribute-add.php | 3 ++- webui/group-attributes.php | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/webui/group-attribute-add.php b/webui/group-attribute-add.php index 565f9885..e05bb67e 100644 --- a/webui/group-attribute-add.php +++ b/webui/group-attribute-add.php @@ -73,6 +73,7 @@ if (isset($_POST['frmaction']) && $_POST['frmaction'] == "add") { </tr> <tr> <td colspan="2"> + <input type="hidden" name="group_id" value="<?php echo $_POST['group_id']; ?>" /> <input type="submit" /> </td> </tr> @@ -96,7 +97,7 @@ if (isset($_POST['frmaction']) && $_POST['frmaction'] == "add") { } else { $stmt = $db->prepare("INSERT INTO ${DB_TABLE_PREFIX}group_attributes (GroupID,Name,Operator,Value) VALUES (?,?,?,?)"); $res = $stmt->execute(array( - $attr_group_id, + $_POST['group_id'], $_POST['attr_name'], $_POST['attr_operator'], $_POST['attr_value'], diff --git a/webui/group-attributes.php b/webui/group-attributes.php index eb13bd0f..d48ecf18 100644 --- a/webui/group-attributes.php +++ b/webui/group-attributes.php @@ -117,6 +117,9 @@ printHeader(array( <?php } +?> + <input type="hidden" name="group_id" value="<?php echo $_POST['group_id']; ?>" /> +<?php } else { ?> -- GitLab