PostNuke: A Flexible Open Source Content Management System
home | forum | international support | contact us

Support Forum

Start ::  Developers Corner ::  Module Development ::  Problem with page redirection

Moderated by: Support Team

Bottom
Problem with page redirection

  • Link to this postingPosted: 02.04.2008, 17:08
    Profile
    DJUS
    rank:
    pnFreshman pnFreshman
    registered:
     March 2008
    Status:
    offline
    last visit:
    29.04.08
    Posts:
    15
    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
  • Link to this postingPosted: 07.04.2008, 10:13
    Profile
    DJUS
    rank:
    pnFreshman pnFreshman
    registered:
     March 2008
    Status:
    offline
    last visit:
    29.04.08
    Posts:
    15
    after research i found the solution!
    thx

Start ::  Developers Corner ::  Module Development ::  Problem with page redirection

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to PostNuke