Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Service Backpack on Jan 11, 2010 09:01
open dhtmlx forum
DHTMLxScheduler passing PHP $_SESSION variable to lightbox form or scheduler to insert into events table

Thank you asnwering my questions Support. Now that you have thought me how to add more fields to the events table and edit the lightbox. How do i pass a $_SESSION variable to the lightbox form like in a <input type='hidden' value='<?=$_SESSION['variable'];?>' /> so it will be inserted as one into one of the fields. How do i specifiy what field for it to be inserted into also?

Thank You
Answer posted by Stanislav (support) on Jan 11, 2010 09:14
Because its a part of session you need not sent it to the client side, just use it as part of connectors code

function custom_fields($action){
     $action->add_field("some_name", $_SESSION['variable']);
}
$scheduler->event->attach("beforeProcessing","custom_fields");