Universal Form Validator PHP Support Product Page

Validate unique fields for user update form but bypass if its the same username

Asked 03 Jul 2013 20:31:49
1
has this question
03 Jul 2013 20:31:49 Miguel Quintero posted:
How can i validate an update page for users to avoid them from inserting an email that already exist in the database but that can pass if they add the same email they have already when they registered, i use to do this with ADDT it checks for unique emails or usernames but what if a user decides to change their email and places one that any other user has already.

This is what i have so far:

Update form that auto fills with a database recordset each fields, the problem is that for unique fields i use the validation of exist in the database but it also validates the email that is already there, i dunno if i explain myself

Reply to this topic