Posted by Tom
2014-09-01
Hi, there is code that prevents users from registering the same username twice. You can find it in web/staff/app/cls_ps_staff.inc.php. See the CheckUsernameConflict( &$def, $id ) function. You may be able to copy and modify it for your needs.
Thanks for the script, this is the best script i found the suits my need. Thank you.
I have one question, How can i customize the script to make it validate if the data is already exist in the database when entering a new entry and editing an entry. for example i would like to check if the phone number already exist? the form will not continue and return an error message that " the number already exist".
Thanks