[ic] form validation problems..
Stefan Hornburg Racke
interchange-users@interchange.redhat.com
Sun Oct 28 15:54:00 2001
Eduardo Dominguez <edmz@yahoo.com> writes:
> I am creating a custom form to gets some input from
> the customers. Its on a page of its own.
>
> What I want to do is:
> - have customers fill the form
> - all fields are required
> - do some minimal validation of the data
> - if the form is correctly filled
> - insert data in the DB
> - redirect the user to a specific page
> - if its incorrect
> - display error messages of wrong fields
> - stay in the same form page
There are various ways to do this. You can use the
insert-data-into-db from IC together with its form
validation feature.
mv_todo=set
...various mv_data settings...
mv_form_profile=Check_form
> [set Check_form]
> &success=index
> &fail=@@MV_PAGE@@
> test_field=required
> test_other=required
> &fatal=1
> test_last=required
> [/set]
Looks fine.
Ciao
Racke
--
Racke happily hacks Interchange and maintains Debian packages like Courier.
For projects and other business stuff please refer to COBOLT NetServices
(URL: http://www.cobolt.net; Email: info@cobolt.net; Phone: 0041-1-3884400)