CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 CCS: Example of custom validation

Print topic Send  topic

Author Message
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));

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.