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

 Checksum validation

Print topic Send  topic

Author Message
Jerry
Posted: 05/24/2005, 12:27 AM

I want to add a checksum validation for a field (named val).

I added an additional textbox (called checksum), and calculated and compared the checksums on the "on validate" event.

However, the "on validate" is also performed before form show, and since the checksums are not saved (and i also don't want to show them) the validation always fails on for show...

I tried to compare the checksums also on the "before submit" and on the "before execute update", but had some problems getting the values \ adding errors to the form.

Help?
Nicole

Posts: 586
Posted: 05/24/2005, 5:21 AM

Jerry,
As I fast solution you can check form submit in onValidate event and run your code only if it is submit
  
global $form_name;  
if ($form_name->FormSubmitted)  
{  
// your checksum code  
}  

_________________
Regards,
Nicole
View profile  Send private message
Jerry
Posted: 05/24/2005, 6:02 AM

Thanks Nicole.

Good idea, but i still have a problem.

I want to checksum only the new / updated values, but since the whole table is updated during submit it looks also for checkums of existing values.

What can i do about it?
Jerry
Posted: 05/25/2005, 12:11 AM

I added a hidden field and solved it.
thanks.

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.

Web Database

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.