I want to use the whole querystring, instead of using separate parameters:
// works:
$col["link"] = "file.php?list1_table_id={table_id}&list1_id={id}&add=1&code=".$_GET["code"];
//works not
$col["link"] = "file.php?list1_table_id={table_id}&'.$_SERVER['QUERY_STRING'].';
//works not
$col["link"] = "file.php?list1_table_id={table_id}&$_SERVER['QUERY_STRING'];
Idea?
Thanx!
I want to use the whole querystring, instead of using separate parameters:
// works:
$col["link"] = "file.php?list1_table_id={table_id}&list1_id={id}&add=1&code=".$_GET["code"];
//works not
$col["link"] = "file.php?list1_table_id={table_id}&'.$_SERVER['QUERY_STRING'].';
//works not
$col["link"] = "file.php?list1_table_id={table_id}&$_SERVER['QUERY_STRING'];
Idea?
Thanx!
Perhaps, only ". is missing in #3. Rest looks fine.
$col["link"] = "file.php?list1_table_id={table_id}&".$_SERVER['QUERY_STRING'];
Thanx
yes this was the case. Now the querystring works and shows all variables. However it also shows internal variables from phpgrid, for instance:
file.php?list1_table_id=table_id&&list1_id=626&grid_id=list1&_search=false&nd=1481737502616&rows=20&jqgrid_page=1&sidx=id&sord=desc
I tried to unset the unwanted variables with:
file.php?list1_id=0&grid_id=0&_search=0&nd=0&rows=0&jqgrid_page=0&sidx=0&sord=0
But they are still evoked. Is it possible to unset the unwanted variables in this link, since then I could use the above query_string-method for my own variables.
I think, I should know the name of the correct phpgridvariables and set them after the querystring, then they are there but not used.
I know that the following ewritingmethod overwrites unwanted variables, but I need to no the correct values…
file.php?list1_table_id={table_id}&".$_SERVER['QUERY_STRING']&&grid_id=0&_search=0&nd=0&rows=0&jqgrid_page=0&sidx=0&sord=0;
Thanx!
You can remove unwanted variables from querystring url by php code.
https://davidwalsh.name/php-remove-variable