George L.
|
| Posted: 06/20/2002, 6:33 AM |
|
Anyone have any examples of custom validation errors using PHP Templates?
Example: Custom Code in On Validate Event.
|
|
|
 |
EMG
|
| Posted: 06/20/2002, 6:59 AM |
|
I am trying to accomplish this right now, I will let you know if I'm successful.
I am passing all the $HTTP_POST_VARS to a function, returning a string of errors if any, and trying to show my error. No luck yet.
|
|
|
 |
EMG
|
| Posted: 06/20/2002, 7:18 AM |
|
Put this code in the Before_Update event to show custom:
function VaFacilityRepor_BeforeUpdate()
$errors = "This error msg will appear"
$VaFacilityRepor->Errors->addError($errors);
return (strlen($errors));
|
|
|
 |
|