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