Skip to content
Snippets Groups Projects
Commit 4ccec83e authored by Robert Anderson's avatar Robert Anderson
Browse files

Remved $_SESSION, replaced with $_POST

parent c147bc6d
No related branches found
No related tags found
No related merge requests found
......@@ -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'],
......
......@@ -117,6 +117,9 @@ printHeader(array(
<?php
}
?>
<input type="hidden" name="group_id" value="<?php echo $_POST['group_id']; ?>" />
<?php
} else {
?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment