[ic] perl code in mv_check gets executed despite verification failure

John Allman interchange-users@icdevgroup.org
Thu Feb 20 07:19:01 2003


Stefan Hornburg wrote:

>On Thu, 20 Feb 2003 11:49:41 +0000
>John Allman <allmanj@houseofireland.com> wrote:
>  
>
>>Stefan Hornburg wrote:
>>
>>>>Mike Heins wrote:
>>>>        
>>>>
>>>>>I don't know what part of the documentation gave you the idea mv_check
>>>>>would run only if a profile succeeded.
>>>>>
>>>>>If you want to conditionally do an mv_check, don't set it in the
>>>>>form, set it in the profile.
>>>>>
>>>>>  &calc = $CGI->{mv_check} = 'performop' if $Scratch->{success};
>>>>>          
>>>>>
>>>Too complicated IMHO, just use mv_form_profile, which is checked as first thing
>>>in the morning.
>>>
>>>Bye
>>>        Racke
>>>
>>>      
>>>
>>Fair enough but as i understand it that wont make a difference. Like the 
>>syntax in /etc/profile.order and in a mv_form_profile variable would be 
>>the same yes? And it doesn't appear to be working...
>>    
>>
>
>mv_form_profile is checked first, so it will only run the database update
>if the check is successful.
>
>Bye
>    Racke
>_______________________________________________
>
Hmmm - ok i have mv_form_profile set to verifyform and later in the page:

[set verifyform]
needfield1=required
needfield2=required
needfield3=required
needfield4=required
deldate=required
address1=required
city=required
country=required
[if value country_cat =~ /^(US|CA)$/i]
        state_cat=state_province
        zip_cat=postcode Appears incorrect
[/if]
emailaddr=required Appears incorrect
&fatal = yes
[/set]

i still have mv_check set to performop

Now no verification happens at all and it just goes straight to the 
results page:(

using interchange 4.6.5 if that makes a difference

thanks

John