How to redirect the user to a specifed page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Andy Smith

    How to redirect the user to a specifed page

    The original code is:

    Code:
        if (!$bGotGoodUrl)
        {
    	    if ($bGotGoodTemplate)
    		    OutputTemplate($SPECIAL_VALUES["good_template"],$aRawDataValues);
    	    else
    		    CreatePage(GetMessage(MSG_THANKS_PAGE));
    I am trying to modify it so the else statement sends the user to another url. Any ideas? Sorry, PHP is not my forte...
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    that depends on whether you have already printed something. if not, you can use header("Locatio n: " . $url); exit;

    Comment

    Working...