[ic] Validating form fields

Stefan Hornburg Racke interchange-users@interchange.redhat.com
Fri Jan 4 13:03:00 2002


"Alexandra Birch" <alexandra@trymedia.com> writes:

> Hi guys
> 
> I have a form for clients to enter their queries. 
> This form needs to have some fields validated like the email field. 
> I have seen two strategies for field validation in the foundation catalog:
>  
> 1) using order profiles eg. any submit order form using profiles.order
> 2) calling a subroutine eg. new user account form calls sub new_account in UserDB.pm
> 
> Not feeling up to adding subroutines in the interchange libs I tried to add a new profile:
> 
> In myform.html:
> 
>               <form action="[process secure=1]" method="post" name="supportquery">
>               <input type=hidden name=mv_todo value=submit>
>               <input type=hidden name=mv_order_profile value=submit_query_profile>

Try mv_todo=go and instead of mv_order_profile mv_form_profile.

Ciao
        Racke

-- 
For projects and other business stuff please refer to COBOLT NetServices
(URL: http://www.cobolt.net; Email: info@cobolt.net; Phone: 0041-1-3884400)