I have a problem with a grid and and its sub_grid.
In the master grid code, I post one parameter:
$grid["subgridparams"] = "par";
In the sub_grid I fetch the parameter:
$ord=$_POST["par"];
and then I use it for the sub_grid caption:
$grid["caption"] = $ord;
IT WORK FINE! The subgrid caption show posted parameter.
When I use the same parameter to set files upload directory
$col["upload_dir"] ="upload/".$ord."/".$nu."/rap"; // upload here
IT DOESN'T WORK!
Upload directory became: "upload/"."/".$nu."/rap".
The variable $ord that contains fetched parameter is ignored while the other one $nu who contains a $_SESSION information is correctly used.
I don't understand why this behavior!
Please help me.
Tank You
You can try preserving that POST data in session and then use in grid config.
e.g.
if (!empty($_POST["company"]))
$_SESSION["company"] = $_POST['company'];
$company = $_SESSION['company'];