Strange behavior using the event "onBeforeInsert"

Hi to All,

I have created a Form based on table like this:

SYS_ACCOUNTID,
SYS_ACCOUNTNAME,
SYS_ACCOUNTEMAIL,
SYS_ACCOUNTTYPE,
SYS_ACCOUNTSTATUS,
SYS_ACCOUNTPWD,
SYS_ACCOUNTPWD_CRYPTED

In the event onBeforeInsert I have entered this code:

{SYS_ACCOUNTPWD_CRYPTED} = '" . md5({SYS_ACCOUNTPWD}) . "' ");

When I run the form, a blank page is displayed; If I comment the code in the event all work fine.

Obviously the field {SYS_ACCOUNTPWD_CRYPTED} (in the form read-only) don’t is initialized.

Can someone help me?

Thank You

Re: Strange behavior using the event “onBeforeInsert”

if you are getting a blank page, your php code is wrong and the apache is stopping.

Problably your code was to be:

{SYS_ACCOUNTPWD_CRYPTED} = md5({SYS_ACCOUNTPWD});