'First Name', 'lastName' => 'Last Name', 'postal' => 'Postal Code', 'wphone' => 'Work Phone', 'nurseType' => 'Nurse Type (LPN, RN, or RPN)', 'nurseLevel' => 'Nurse Level (I or II)', 'regNumber' => 'Registration #', 'contactMethod' => 'Contact Method', 'contactTime' => 'Best Contact Time', 'courseName' => 'Course Name', 'howLong' => 'How Long they have been practicing', 'dlNumber' => 'Drivers License Number', ); $required = array('firstName', 'lastName', 'address', 'city', 'province', 'postal', 'country', 'wphone', 'nurseType', 'courseName', 'institution', 'instructor', 'nurseLevel', 'howLong', 'association', 'regNumber', 'dlNumber', 'contactMethod', 'contactTime'); $missingVals = array(); foreach ($required as $fname) { if (!isset($_POST[$fname]) || (trim($_POST[$fname]) == '')) { if (isset($fieldNameTranslation[$fname])) $missingVals[] = $fieldNameTranslation[$fname]; else $missingVals[] = ucfirst(strtolower($fname)); } } if (count($missingVals) > 0) { $v = join(", ", $missingVals); $errors[] = "Please enter values for the following required fields: {$v}"; } // check e-mail address $email_pattern = "^[^ \t@]+@[^ \t@.]+(\.[^ \t@.]+)+$"; if (!ereg($email_pattern, $P_email)) { $errors[] = "Invalid e-mail address"; } $r = db_query("SELECT * FROM users WHERE email='{$P_email}' AND status!='deleted'"); if (mysql_num_rows($r) != 0) { $errors[] = "There is already an account for that e-mail address. Please enter another one."; } // check DOB if (!ereg('^[0-9]+$', $P_dobd) || !checkdate(round($P_dobm), round($P_dobd), round($P_doby))) { $errors[] = "Invalid date of birth"; } else { $P_dob = date('Y-m-d', mktime(12, 0, 0, $P_dobm, $P_dobd, $P_doby)); } // check username if (strlen($P_username) < 4) { $errors[] = "Your username must be at least 4 characters long."; } $r = db_query("SELECT * FROM users WHERE username='{$P_username}' AND status!='deleted'"); if (mysql_num_rows($r) != 0) { $errors[] = "That username is already in use. Please select another one."; } // check password if (strlen($P_password1) < 5) { $errors[] = "Your password must be at least 5 characters long."; } if ($P_password1 != $P_password2) { $errors[] = "Your passwords do not match. Please retype them."; } if (count($errors) > 0) { // display error message $errorMsg = nl2br(join("\n\n", $errors)); } else { // process submitted information $memberVals = "nurseType='$P_nurseType', nurseLevel='$P_nurseLevel', association='$P_association', regNumber='$P_regNumber', " . "registered=NOW(), " . "dob='$P_dob', " . "courseName='$P_courseName', institution='$P_institution', instructor='$P_instructor', howLong='$P_howLong', " . "dlNumber='$P_dlNumber', comments='$P_comments', " . "address='$P_address', city='$P_city', province='$P_province', country='$P_country', postal='$P_postal', " . "hphone='$P_hphone', wphone='$P_wphone', cphone='$P_cphone', " . "contactTime='$P_contactTime', contactMethod='$P_contactMethod'"; $userVals = "username='$P_username', password='$P_password1', firstName='$P_firstName', lastName='$P_lastName'," . "email='$P_email', type='member', status='pending'"; db_query("INSERT INTO users SET $userVals"); $userid = mysql_insert_id(); db_query("INSERT INTO members SET $memberVals, record_num='{$userid}'"); $registrationComplete = 1; $message = "
{$P_firstName} {$P_lastName},\n\n" .
      "Your All-Ways Foot Care registration information has been received, and is pending review.\n" .
      "We will contact you when your registration is approved, and you will be able to sign in and pay for your membership at that time." .
      "
"; SendEmail($P_email, "info@allwaysfootcare.com", "Registration Received", $message); $message = "
A new \"Community Membership\" registration has been received.\n" .
      "You can review and update/approve this registration from the Pending Members section of the admin panel." .
      "
"; SendEmail("info@allwaysfootcare.com", "info@allwaysfootcare.com", "Registration Received", $message); } } ?> Vancouver Foot Care Services - All Ways Mobile Medical Pedicures for Seniors
  • Name: 
    Email: 

Register as a Community Member

Thank-you for submitting your application to become an All-Ways Footcare Member.
We will review the information you submitted, and get back to you shortly.

Personal Information

 


Contact Information


Professional Information

/>   />   />
/>   />


Login Information