Unique Database value
I have a registration page built with validations however when i try and validate the email address against currently registered email addresses it does not work. The process i followed after reading several posts was:
1. In the server bahaviours tab click add > webassist > validations > server validations
2.
Validation trigger: Button: Registration_submit pressed
Validation Type: Unique Database Value
Server Variable: $_SESSION['SecurityAssist_UserID']
I can still register using the same email address as already registered in database, not sure where i am going wrong here, is there any detailed documentation on checking if a value already exists before processing registration?
Server Validation: Unique Database Value
Unique column: Email
Key Column: UserID
Key Value:<?php echo isset($_SESSION['SecurityAssist_UserID'])?$_SESSION['SecurityAssist_UserID']:"0"; ?>