echo 'Пол:<br />';
echo '<select name="gender">';
echo '<option value="М">Мужской</option>';
echo '<option value="Ж">Женский</option>';
echo '</select><br />';
ниже в проверке
$gender = check($_POST['gender']);
добавить условие
if ($gender == 'М' || $gender == 'Ж') {
} else {
show_error('Ошибка! Вы не указали ваш пол!');
}
<?
этот код
DB :: $dbh -> query("INSERT INTO `users` (`users_login`, `users_pass`, `users_email`, `users_joined`, `users_level`, `users_newprivat`, `users_themes`, `users_postguest`, `users_postnews`, `users_postprivat`, `users_postforum`, `users_themesforum`, `users_postboard`, `users_timezone`, `users_showtime`, `users_point`, `users_money`, `users_avatar`, `users_confirmreg`, `users_confirmregkey`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);", array($logs, md5(md5($pars)), $meil, SITETIME, 107, 1, $config['themes'], $config['bookpost'], $config['postnews'], $config['privatpost'], $config['forumpost'], $config['forumtem'], $config['boardspost'], $config['timeclocks'], $config['showtime'], 0, 1000, 'images/avatars/noavatar.gif', $config['regkeys'], $registration_key));
заменить на
DB :: $dbh -> query("INSERT INTO `users` (`users_login`, `users_pass`, `users_email`, `users_joined`, `users_level`, `users_newprivat`, `users_themes`, `users_postguest`, `users_postnews`, `users_postprivat`, `users_postforum`, `users_themesforum`, `users_postboard`, `users_timezone`, `users_showtime`, `users_point`, `users_money`, `users_avatar`, `users_confirmreg`, `users_confirmregkey`, `users_gender`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);", array($logs, md5(md5($pars)), $meil, SITETIME, 107, 1, $config['themes'], $config['bookpost'], $config['postnews'], $config['privatpost'], $config['forumpost'], $config['forumtem'], $config['boardspost'], $config['timeclocks'], $config['showtime'], 0, 1000, 'images/avatars/noavatar.gif', $config['regkeys'], $registration_key, $gender));