Hello, I have a script called register.php What I want is to validate the email a user inputs and I want the register.php script to call a function email_valid() in validate_email.php to do the validation. The reason is because another user the web admin can also create new user accounts and he needs to enter an email which is also the username so I want to use that same function above in web_admin.php script to validate the email he enters. Any ideas how I go about doing that? Thanks
create a file called functions.php, put the email validation routine in it. Use PHP's include or require_once statement in both of the other files and it will be available.