[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Data validation using mv_click
--- Bill Carr <bill@worldwideimpact.com> wrote:
> On Thu, 2002-05-16 at 15:48, Tim Nelson wrote:
> > I've have a form that updates the a database
> > table just fine. Now I want to be able
> > to validate some of the data using mv_click
> > (unless there is better way) like:
> >
> > [set Check It]
> >
> > .... validate the values ....
> > .... if bad data, set an error in scratch
> > and push back to the same page
> > .... else
> > set mv_data_enable=1
> > move on to value set in mv_nextpage
> >
> > [/set]
> [set Check It]
> field1=required You need a value here
> field2=email You need a valid email address here
> [/set]
>
> >
> > <INPUT TYPE=HIDDEN NAME="mv_click" VALUE="Check
> It">
> <INPUT TYPE=HIDDEN NAME="mv_form_profile"
> VALUE="Check It">
>
> See [error] tag for displaying errors.
>
> --
> Bill Carr
> Worldwide Impact
> bill@worldwideimpact.com
> 413-253-6700
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
>
http://interchange.redhat.com/mailman/listinfo/interchange-users
Thanks Bill, that heads me in the right direction...
I really need some more sophisticated validation
than that though. Can I get at the form [values]
at this point (to do some perl) to validate the
fields against other tables? Can I trigger the
failure from perl?
Thanks again.
__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com