[phorm] [Phorm:] Not sure what to call it but I need help

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 15 Jan 2003 23:33:10 -0000

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

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

  MESSAGE:  (#2076) Not sure what to call it but I need help 
            <http://www.phorm.com/support/?rev=2076> 
  AUTHOR:   Jason 
  DATE:     January 15, 2003 at 6:33 p.m. EST 

OK I have read the sections on Data Recycling, Validation, and Configuration. 
However, I am still not sure how to accomplish the following: 

I want to be able to submit a form after it has passed through Phorm and was 
returned because of validation errors. In other words I do not want the user 
to hit the back button and make the changes. I want the same form displayed 
with the errors and can submitted once again to pass through Phorm, validation 
and on to an ack page. 

I am using a rules.txt file that has one file defined in the FILES section to 
handle errors, for example: 

FILES 
rma_frm_error.htm 
RULES 
etc. 

rma_frm_error.htm is the error page I want returned when a form is processed 
against my rules file. It is basically a copy of the main html form page 
(rma_frm.htm). The only difference is I have added a section for the rule 
error message and display an asterisk next to the filed that did not pass 
validation. This all works fine ACCEPT ? the forms submit button produces the 
following error: 

040 - I'm sorry, this page only processes the contents of a form. You cannot 
access it directly. 

and the clear button will only clear the fields that are entered after the 
form has passed through Phorm and validation. In other words the fields that 
had something entered into them when the page was the original form are not 
cleared. 

EMBEDDED QUESTION: I have a default Form_name_error.htm file under the same 
directory as PHORM but it does not display with this error, why is that? It 
will work if for instance I rename the configuration file and when Phoem looks 
for the correct name and of course does not find it the Form_name_error.htm 
file pops up fine or if I play with the referrer line it pops us as well. 

I understand why the radio buttons don?t work, because of the same reason the 
ack page can not be bookmarked, RIGHT? 

Under Data Recycling in the documentation it says that you actually could even 
use the original form file as your error template; since the <!-- Phorm 
Messages --> flag is an HTML comment, it won't appear when the form is 
initially displayed. 

I have tried this but I get a pink default error screen with only the Phorm 
error messages. My original form is not redisplayed. My form name is 
rma_frm.htm and my rules.txt files is configured the same under the FILES 
section. 

FILES 
Rma_frm.htm 
RULES 
etc. 

I want to maintain separate configuration files for each form so is $PHORM_URL 
my solution? If so how do I configure $PHORM_URL? For example, what do I set 
in FILES section under the rules.txt file? Will my ack page still display 
after passing successful validation? 

I don?t think that $PHORM_RDIRECT is the answer because that you prevent my 
ack page from showing after a form passes validation, right? 

After this and figuring out why I can not get counter to work I will be 
completely done, well I think I will or hope that I am. Something like that. 

Thanks for your support and for a great script! 

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

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:] Not sure what to call it but I need help