[phorm] [Phorm:] Redirect does not work

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 28 Aug 2003 20:52:33 -0000

The following new message has been posted on Phorm Support Forum at 
<http://www.phorm.com/support/>. 

*************************************************************************** 

  MESSAGE:  (#3144) Redirect does not work 
            <http://www.phorm.com/support/?rev=3144> 
  AUTHOR:   Ann Schmidt 
  DATE:     August 28, 2003 at 4:52 p.m. EST 

Using Phorm ver 3.0.5, I have been trying to get the redirect to work when 
$PHORM_RCONFIG is "Y" and $PHORM_CONFIG is not set and using $PHORM_URL. 

The following code sets the $ph_Abort to true which prevents the redirect 
(very last line in program) from happening. I noticed that this line in the 
program changed sometime after 3.0.2 

if ($PHORM_RCONFIG && !$PHORM_CONFIG) { 

$ph_Abort = true; 

if ($PHORM_URL) $ph_Redirect = $PHORM_URL; 

else $ph_Errs['040'] = ph_Message("E040"); 
} 

Line of code for 3.0.5 
----------------------- 
if ($ph_Redirect && !$ph_Abort) Header("Location: $ph_Redirect"); 

Line of code in 3.0.2 
--------------------- 
if ($ph_Redirect) Header("Location: $ph_Redirect"); 

I think this needs to be fixed but I am not sure why you added the "!ph_Abort" 
condition. 

Ann 

*************************************************************************** 

This is an automatically-generated notice.  If you'd like to be removed from 
the mailing list, please visit Phorm Support Forum at 
<http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx  If 
you wish to respond to this message, please post your response directly to the 
board.  Thank you! 
-------------------------------------------------
You are receiving this message because you are subscribed to the Phorm mailing 
list. To send messages to the mailing list, simply send email to 
phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe 
from the list by sending email to phorm-request@xxxxxxxxxxxxx with 
'unsubscribe' in the SUBJECT field.

Other related posts:

  • » [phorm] [Phorm:] Redirect does not work