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.
|
|
|
|