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
- Paustian responded to »Different page content under one template (tpl file) based on URL« 06:46 AM
- Guite responded to »Remove contents of nuke_sc_anticracker from Database« 01:30 AM
- espaan responded to »Categories disappear when editing ...« 08. Feb
- eledril responded to »How decrease zikula cpu usage« 08. Feb
- jmvaughn responded to »PN 0.764 to Zikula 1.1.2 (migration) Internal Server Error« 08. Feb
- eledril created topic »Where can I download BBCode and BBSmile?« 08. Feb
- Paustian responded to »Need Feedback« 08. Feb
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
