CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 comparing entered passwords - no error mesage

Print topic Send  topic

Author Message
Tomasz
Posted: 01/29/2002, 6:44 AM

Maybe someone know - what is the reason comparing doesn't work at all..

Form has 2 password fields called 'pass' and 'pass1'. First is connected with db password field, second is empty. I have in validation event:
if (get_param("pass") != get_param("pass1"))
$sRegErr .= "\nEntered passwords are not equal";

but after submit form with different passwords, there's no error message, and new password is entered into db..
Chris
Posted: 01/29/2002, 7:08 AM

Hi Tomasz,
Did you try writing out the values of get_param("pass") and get_param("pass1")?
It could be that those functions are not returning what you think they are.

Just a thought.

Nicole
Posted: 01/29/2002, 7:22 AM

Also check the 'Create Validation Rules' checkbox to be checked on Form/Properties
Tomasz
Posted: 01/29/2002, 8:13 AM

Chris:
can you help me with writing out these values?

Nicole:
'Create Validation Rules' checkbox is checked
Peter
Posted: 03/22/2002, 12:21 PM

Hi Tomasz,

..if your form-name isn't "Reg", you will not get an error-message. second line has to be:

$syourformnameErr .= "\nEntered passwords are not equal";

hope this helps.
peter

   


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.