CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 How do I prevent a record from being added to my user file if the password and the varify password fields don't match

Print topic Send  topic

Author Message
Allen Patrick
Posted: 03/10/2004, 8:31 AM

Hello
How do I prevent a record from being added to my user file if the password and the varify password fields don't match. I want to compare the fields and if they do not match I want to through up an error message that tells them what the problem is and prevent the form from adding the record to the database. I am using a ccs record form.
Thanks
Don Safar
Posted: 03/10/2004, 11:28 AM

compare the two fields in the on validate event. If they are not equal, add
an error message to the error collection
If ($formname->Fieldname1->GetValue() <> $formname->Fieldname2->GetValue() )
$formname->Errors->addError("Passwords do not match.");

<AllenPatrick@forum.codecharge (Allen Patrick)> wrote in message
news:5404f42ed21623@news.codecharge.com...
> Hello
> How do I prevent a record from being added to my user file if the password
and the varify password fields don't match. I want to compare the fields
and if they do not match I want to through up an error message that tells
them what the problem is and prevent the form from adding the record to the
database. I am using a ccs record form.
> Thanks
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

Allen Patrick
Posted: 03/10/2004, 3:40 PM

:-)
Thanks that worked perfectly. You really saved my bacon.
Thank you very much.

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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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