Exemple #1
0
<?php

if ($_POST) {
    $username_f = $_POST['username'];
    $username = strtolower($_POST['username']);
    $password = $_POST['password'];
    $password2 = $_POST['password_check'];
    $email = $_POST['email'];
    $security_q = $_POST['security'];
    $security_a = $_POST['s_answer'];
    $info = "{$username_f}, {$username}, {$password}, {$password2}, {$email}, {$security_q}, {$security_a}";
    carbon::register($info);
} elseif (carbon::logged() == 0) {
    if (carbon::config(user_reg, 0) == 1) {
        ?>

<form action='?page=register' method='post'>

<table border='0' cellpadding='0' cellspacing='1' align='center' width='100%'>

	<tr>
	
		<td width='150px'>

			Username:
			
		</td>
		
		<td>
		
			<input type='text' name='username' class='login_box'>