This topic is locked

Error Checking

9/14/2007 9:43:58 AM
PHPRunner General questions
K
kathykelley author

I have some error checking that needs to be done before a record can be added to the database. The code lives in beforeadd and beforeedit routines. My question is this, how do I display error messages to the users? Currently I just have an echo statement but that doesn't look nice. I would like the message to appear in the popup screen the same as required fields. Is there anyway to do this? Thank for the help.

Sergey Kornilov admin 9/16/2007

Kathy,
you can use the following in BeforeAdd event:

echo("<script>alert('Your message here');</script>");