Pass Value for CSV Export

QuestionsPass Value for CSV Export
VINIT SONI asked 11 years ago

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.

4 Answers
Abu Ghufran answered 11 years ago

I dont understand what you mean by $_POST variable export.
Please explain scenario with some example / screenshots.

VINIT SONI answered 11 years ago

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.

Abu Ghufran answered 11 years ago

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"];

VINIT SONI answered 11 years ago

Done…!!! Thanks

Your Answer

6 + 1 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?