[phorm] [Phorm:] PHORM_RDIRECT

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 18 Feb 2003 20:26:04 -0000

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

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

  MESSAGE:  (#2295) PHORM_RDIRECT 
            <http://www.phorm.com/support/?rev=2295> 
  AUTHOR:   Ann Schmidt 
  DATE:     February 18, 2003 at 3:26 p.m. EST 

This email is related to the redirect when you get the error "I'm sorry, this 
page only processes the contents of a form. You cannot access it directly." 

$PHORM_RCONFIG = "Y" 
$PHORM_RDIRECT = "http://mydomain.com/noaccess.html";; 

If a user goes directly to phorm.php (http://mydomain.com/phorm/phorm.php) 
there should be a redirect to the noaccess.html (value of PHORM_RDIRECT). 

The problem is that $ph_Abort is set to "1" because there is no config file 
value. The redirect will not occur. See the code at the end of phorm.php 

if ($ph_Redirect && !$ph_Abort) Header("Location: $ph_Redirect"); 

Am I looking at this wrong or is there a slight bug in the code? 

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

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:] PHORM_RDIRECT