Dear Sir,
I want to export Result to CSV. But While export $_POST variable is not working. How to Solved this ? Is there any setting for Export to CSV for $_POST variable.
Please replay me as soon as possible.
I dont understand what you mean by $_POST variable export.
Please explain scenario with some example / screenshots.
Dear Sir,
I have Paste Code in ( http://pastebin.com/JzapXYif ). While Export Button Click it not working $_POST["txtunioncd"] , $_POST["txtsoccd"]. So export Result display blank.
Hello,
I guess this code segment may need some correction …
$unioncd = $_POST["txtunioncd"] ;
$soccd = $_POST["txtsoccd"] ;
$_SESSION["unioncd"] = $unioncd ;
$_SESSION["soccd"] = $soccd;
if ($_POST[txtunioncd] == "")
{
$_POST[txtunioncd] = $_SESSION["unioncd"];
$unioncd = $_POST["txtunioncd"] ;
}
if ($_POST[txtsoccd] == "")
{
$_POST[txtsoccd] = $_SESSION["soccd"];
$soccd = $_POST["txtsoccd"] ;
}
Alternate code would be …
if (!empty($_POST["txtunioncd"]))
{
$_SESSION["unioncd"] = $_POST["txtunioncd"];
}
$unioncd = $_SESSION["unioncd"];
if (!empty($_POST["txtsoccd"]))
{
$_SESSION["soccd"] = $_POST["txtsoccd"];
}
$soccd = $_SESSION["soccd"];