Problem with page redirection

Hello everybody,

I am a new postnuke developper, and i am developping a new postnuke module for my site.
I used the page redirection at the begining of my code in order to switch from a HTML page to another and it worked without problem.
code PHP:

$valeur = FormUtil::getPassedValue('liste', isset($args['liste']) ? $args['liste'] : null, 'REQUEST');

if (headers_sent())
{
echo 'cannot readirect as headers have already been sent';
}
else
{
return pnRedirect(pnModURL('module', 'user', 'date', array('valeur' => $valeur)));
}
This page redirection worked without problem.
Now i am using a HTML page in which many variables can be updated and reappaears on the same page!
I use a next button to switch into a new page whith variables value in header.
I can go to the new page but my variables are empty!! the code is the following:

if ($pass == "ok")
{

$numserie = FormUtil::getPassedValue('numserie', isset($args['numserie']) ? $args['numserie'] : null, 'REQUEST');
$valeur = FormUtil::getPassedValue('TypeApp', isset($args['TypeApp']) ? $args['TypeApp'] : null, 'REQUEST');
return pnRedirect(pnModURL('module', 'user', 'transit', array('numserie' => '$numserie', 'valeur' => '$valeur')));

Please help me !

PS the two varibles $numserie and $valeur become automaticaly empty when i put them in the if sentence





edited by: DJUS, Apr 02, 2008 - 05:11 PM
after research i found the solution!
thx