[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Re: [data session errors] overwritten?
> > You can try this in your profile
> >
> >
> > email=email
> > [if type=value term=email_confirm op=ne compare="[value email]"]
> > &calc = delete $CGI->{email_confirm}; 1;
> > email_confirm=mandatory Email_confirm doesn't match email.[/if]
> >
> >
> > Ed showed me that :)
>
>
> Wow! That was a fantastic piece of code!! :) It worked beautifully!
>
> Could you explain how this code works?
>
> &calc = delete $CGI->{email_confirm}; 1;
>
>
> Thank you very much!
Yes, Ed Lafrance is one of the talented consultants on this list.
I believe it basically:
If "email_confirm" doesn't equal "email" then
&calc = delete $CGI->{email_confirm}; 1;
which deletes the email_confirm value, so when the next check comes along:
email_confirm=mandatory Email_confirm doesn't match email.
It will ring false.
I am not sure what the "1" is for.
Paul