[ic] required fields

Doug Alcorn doug at lathi.net
Wed Sep 17 23:20:31 EDT 2003

I have a page with a form and fields i want to make required.  The
page basically looks like this:

----- begin page snippet -----
[set Continue]
# voodoo to set $Scratch->{nextpage}
[if scratch nextpage]
mv_nextpage=[scratch nextpage]

<form method="post" action="[process secure=1]">
<input type="hidden" name="mv_session_id" value="[data session id]" />
<input type="hidden" name="mv_check" value="checkerror" />
<input type="hidden" name="mv_todo" value="return" />

[set checkerror]
[if type=explicit compare="[error all=1 show_var=1 keep=1]"]

[error name="foo" std_label="Foo" required=1]
<input type="text" name="foo" size="5" />
<input type="submit" name="mv_click" value="Continue" />
----- begin page snippet -----

What I'm trying to do is setup a chain of pages.  The voodoo step is
what calculates the next page in the chain.  What happens though is
that it always goes to the [scratch nextpage] rather than reloading
the current page and complaining about the errors.

It just doesn't look like IC is processing the error tags.  What am I

 (__) Doug Alcorn - Unix/Linux/Web Developing
 oo / PGP 02B3 1E26 BCF2 9AAF 93F1  61D7 450C B264 3E63 D543
 |_/  mailto:doug at lathi.net http://www.lathi.net
      mailto:tarpit at lathi.net is a spam trap

More information about the interchange-users mailing list