$email, 'password' => $password); if(login($data)) { header('Location: register.php'); } // end if logged-in else { $message = 'Error: there was a problem logging you in automatically. Please try to login manually here. If the error persists, please contact bioc [at] indiana (dot) edu.'; } // end if not logged-in } // end if registered else { $message = $status; } // end else for if registered } // end if validated else { echo $status; } // end if error in validating the data } // end if registration else { header('Location: register.php'); } if($message) { echo ' Biocomplexity 9 Registration ' . $message . '

Back to the main page »'; } ?>