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

Gary Norton interchange-users@icdevgroup.org
Wed Dec 4 15:53:01 2002


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.

TIA

Gary