<?php require_once('includes/requirecompere.inc.php'); require_once('includes/requirepost.inc.php'); $cs_id_select=TPOST('cs_id_select'); $o_id_select=TPOST('o_id_select'); $cs_id_ref=TPOST('cs_id_ref'); $o_id_ref=TPOST('o_id_ref'); $caller=TPOST('caller'); if (!$cs_id_ref || !$o_id_ref) return; $DBConn->connect(); $DBConn->begin(true); db_set_course_option_association($DBConn,current_mb_id(),$cs_id_select,$o_id_select,$cs_id_ref,$o_id_ref); $DBConn->commit(); redirect("qx-cmd-option.assign.course.save.done-caller-".$caller.".html"); ?>