I am trying to carry a variable over to disable.php which will then update a row in the database, all of this is within a wordpress plugin I am building. I cannot see why this won't work.
Heres my form
<form method='post' action='".plugins_url()."/myremovalsquote/inc/disable.php''>
<input type='submit' name='".$_SESSION['id'] = $active_partner->partner_id."' class='button-primary' id='disable' value='Disable'/>
</form>
Heres my /disable.php
global $wpdb;
$id = $_SESSION["id"];
$wpdb->query("UPDATE partners SET active='no' WHERE partner_id='".$id."'");
header("Location: http://www.website.com/wp-admin/admin.php?page=my-plugin-settings");
This is the error I am getting, it seems that the variable from the session isn't being carried over to disable.php.