person; $_roles= $_person['role_ids']; // if action exists figure out what to do if( $_POST['actions'] ) { // get slice_id as int $site_id= intval( $_POST['site_id'] ); // depending on action, run function switch( $_POST['actions'] ) { case "update": plc_redirect( "update_site.php?id=$site_id" ); break; case "delete": plc_redirect( "delete_site.php?id=$site_id" ); break; case "expire": plc_redirect( "expire.php?id=$site_id" ); break; } } /* // Print footer include 'plc_footer.php'; */ ?>