Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Xavier on Dec 09, 2008 06:38
open dhtmlx forum
passin values to PHP that renders XML

Hi there! I've got following situation:

PHP script loads initial values for DHTMLXGrid in file called: file1.php. Inside of it, I've got dynamic data that occurs before function doInitGrid(){}.

In doInitGrid(){} part of file1.php, XML is loaded through echo"gridQString = \"file2.php\";"; statement.

I need to pass PHP variables from file1.php to file2.php (it renders XML output to DHTMLXGrid)

Is it possible to do, if so, how?

tnx in advance.

h


Answer posted by Support on Dec 09, 2008 08:46

a) you can share such data in session, which will give access to it for all scripts of the same user

b) you can include params in url
Instead of 
echo"gridQString = \"file2.php\";"; 
you can use
echo"gridQString = \"file2.php?param1=".$param1."&param2=".$param2."\";";