Access to session vars and GET vars after AJAX call

Dyeknountee

New Member
After an AJAX call, I don't manage to use my "old" var (PHP ones, GET ones)...For instance (case of adding an event) :\[code\]function addEvent() { var formEvent=new Object; $("#formEvent input, #formEvent select").each(function () { if(!$(this).is(":disabled")) { formEvent[$(this).attr("name")]=$(this).val(); } }); $.ajax({ url : "/function/php/event/addEvent.php", data : { "dataEvent" : formEvent }, dataType : "text", type : "POST", success : function(data) { modal("Inscription", data); eval($(data).text()); } });}\[/code\]I'd like to access to session vars and GET params (name of the user) in my addEvent.php page.Do you have any idea ? Is it due to ajax settings ?Thanks a lot.
 
Back
Top