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
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."¶m2=".$param2."";";