Convert event.php variable to normal php $variables

Hi, I have this in my event.php

[code]<?php
session_start();
include (’…/…/…/codebase/connector/scheduler_connector.php’);
include (’…/…/common/config.php’);

$res=mysql_connect($server, $user, $pass);
mysql_select_db($db_name);
mysql_query("SET NAMES utf8");
$scheduler = new schedulerConnector($res);
/*$list = new OptionsConnector($res);
$list->render_table("types","typeid","typeid(value),name(label)");*/


//-------------Sub Type dropdown ..........................

$OtherDropdown = new OptionsConnector($res);
$OtherDropdown->render_sql("select id as value, session_type as label from session_type where user_id = '".$_SESSION['user_id']."'","","value,label");
//$OtherDropdown->render_table("session_type","session_type","id(value),session_type(label)");
$scheduler->set_options("session_type",$OtherDropdown);

//------------- Eof Sub Type dropdown ..........................


$clients = new OptionsConnector($res);

$clients->render_sql("select id as value, full_name as label from clients where user_id = '".$_SESSION['user_id']."'","","value,label");

$scheduler->set_options("clients",$clients);
	//$scheduler->enable_log("log.txt",true);

function mycode($action){
$action->set_value(“user_id”, $_SESSION[‘user_id’]);
}
$scheduler->event->attach(“beforeProcessing”, “mycode”);

//$scheduler->enable_log("log.txt",true);
//$scheduler = new schedulerConnector($res);
//$scheduler->render_table("events","event_id","start_date,end_date,event_name,details,types,clients");


if ($scheduler->is_select_mode()){ // ' code for loading data

$SQL = “SELECT * from sessions WHERE user_id=’”.$_SESSION[‘user_id’]."’ ";
$scheduler->render_sql($SQL,“id”,“start_date,end_date,session_name,session_name,session_notes,session_type,session_location,type,client_id”, “”, “”);
}
else { // code for other operations - i.e. update/insert/delete
$scheduler->render_table(“sessions”,“id”,“start_date,end_date,session_name,session_notes,session_type,session_location,type,client_id,user_id”);
}

?>[/code]

how can I retrieve my variable from the lightbox as $variables like normal variables.
Something like
$sessions = $_POST[‘sessions’];
from the render table
tks
Seby

Hi,
values are prepended with id of the related event.
Try following$item_id = $_POST["ids"]; $sessions = $_POST[$items_id .'_sessions'];

Hi, if I put that in my event.php, the variables return empty
$item_id = $_POST[“ids”];
$sessions = $_POST[$items_id .’_sessions’];

I want to catch the variables from the lightbox and catch them from the event.php file and put them in $variables format.
The post format seems to be empty.
tks
Seby

Please post the client side code, used for dataprocessor initialization.
If custom configuration was not applied - dataprocessor sends data always by POST and POST[“ids”] is a mandatory parameter.