CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 validation

Print topic Send  topic

Author Message
itzumar

Posts: 88
Posted: 03/28/2011, 12:15 AM

I have one record form as follow:
Vehicle No __________
Filter Type: Gen/ Local
Millage________
Submit

The problem is that I want to apply some check on it. I want it should generate error message if filter type is = gen & Millage is <2500? how can I do ? can anybody help me? am using php

_________________
Umar
_________________
Umar
View profile  Send private message
jjrjr2


Posts: 131
Posted: 03/29/2011, 9:25 PM

In the onvalidate event do your validations then set the error message you want and return


_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
Real Web Development At: http://RealWebDevelopment.us
View profile  Send private message
itzumar

Posts: 88
Posted: 03/29/2011, 9:27 PM

but how? can u give example?
_________________
Umar
View profile  Send private message
francine

Posts: 6
Posted: 03/31/2011, 1:53 AM

example : compare two field

if ($utilisateur->user_pass->GetValue() != $utilisateur->user_pass_confirmer->GetValue()) {
$utilisateur->Errors->addError("Votre mot de passe n'a pas été correctement confirmé.");
}

View profile  Send private message
CodeChargeMVP

Posts: 473
Posted: 04/01/2011, 3:15 AM

Hi,

Itzumar I think you may shall check an basic programming tutorial.

Quote itzumar:
but how? can u give example?

_________________
Best Regards
Entrepeneur | NT Consultant
View profile  Send private message

Add new topic Subscribe to topic   


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.