//*********************************************************************//
if (!isset($_SESSION)) {
    session_Start();
}
require_once "form_registration_class.php";
require_once "../connection_to_db.php";
if (isset($_POST["register_user"])) {
    $register_user = new register($_POST, $conn);
    $register_user->site_name = "http://atheustbn.site11.com";
    $register_user->from = "sami forum";
}
?>

<p> Register new account </p>
<form method="POST" action="<?php 
$_SERVER["PHP_SELF"];
?>
">
	<p class='form_tile'>Username: </p> <input name="username" type="text"> </br>
	<p class='form_tile'>Email: </p>  <input name="email" type="text"> </br>
	<p class='form_tile'>Password: </p>  <input name="password_one" type="text"> </br>
	<p class='form_tile'>Repeat Password: </p>  <input name="password_two" type="text"> </br>
	<p class='form_tile'>Enter captcha: </p>  <input name="captcha" type="text"> </br>
	
	<?php 
register::display_captcha();
?>
	<input name="register_user" type="submit" value="Register">
</form>