Ok , im gonna take your advice drew and check to see if the member they are posting exsit's in my other database , if so , then continue with registration , if not , then exit.
a little confused on how to do this ..
here is where im at so far
// ############################### start add member ###############################
if ($_POST['do'] == 'addmember')
{
globalize($_POST, array('options'));
if (!$vboptions['allowregistration'])
{
eval(print_standard_error('error_noregister'));
}
// check for multireg
if ($bbuserinfo['userid'] != 0 AND !$vboptions['allowmultiregs'])
{
$username = $bbuserinfo['username'];
eval(print_standard_error('error_alreadyregistered'));
}
$errors = array();
// check username does not contain semi-colons
if (preg_match('/(?<!&#[0-9]{3}|&#[0-9]{4}|&#[0-9]{5});/', $_POST['username']))
{
//eval(print_standard_error('error_username_semicolon'));
eval('$errors[10] = "' . fetch_phrase('username_semicolon', PHRASETYPEID_ERROR) . '";');
}
// strip 'blank' ascii chars if admin wants to do so
$_POST['username'] = strip_blank_ascii($_POST['username'], ' ');
// convert any whitespace to a single space to prevent users entering 'user one' to look like 'user one'
$_POST['username'] = trim(preg_replace('#\s+#si', ' ', $_POST['username']));
////////////////////////////////////CHECK FOR USER IN MY USERS TABLE //////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////
Their is already a database connection open for vbulletin's registration script obviously .. so is it safe to open another one? and what would i use for this ..