[ic] Need an additional pair of eyes to help find Form Validation problem

Stefan Hornburg interchange-users@icdevgroup.org
Wed Dec 4 16:58:01 2002


On Wed, 04 Dec 2002 13:51:56 -0700
"Gary Norton" <gnorton@broadgap.com> wrote:

> Can someone please look at the following snippet of code and help identify what my problem is.
> 
> form:
> <FORM ACTION="[process]" METHOD=POST>
> <INPUT TYPE=HIDDEN NAME=mv_todo VALUE=go>
> <INPUT TYPE=hidden NAME=mv_form_profile VALUE=test>
> [if type=explicit compare="[error all=1 show_var=1 keep=1]"]
> <P>
> <font __FFACE__ size="2">
> <b>We trapped the validation error.</b>
> <br>
> They are shown in <FONT COLOR=__CONTRAST__><b><u>THIS COLOR</u></b></FONT>
> below.
> </FONT>
> </P>
> [/if]
> [error name=testfield std_label="testfield:" required=1]
> <INPUT TYPE=text NAME=testfield size="25" maxlength="20">
> <input type="submit" value="Test Validation">
> </form>
> 
> 
> 
> /etc/profiles.order:
> 
> __NAME__                            test
> testfield=required
> &setcheck=mv_email [cgi testfield]
> &fatal = yes
> __END__
> 
> 
> When I hit the submit button, the page is redirected to my index.html page. I never get any validation taking place. I have restarted the IC server and my cache is clear. I have worked on this for a bit and this is the simplest scenario I can think of to narrow the problem down. I realize I am doing something fundamentally wrong, but can't put my finger on it.

Have you tried to set mv_nextpage in your form ?

Another way is to define &fail and &success in the profile.

Ciao
       Racke