Hello,
im trying to display my echo after I register the user
PHP Code:
echo 'You\'ve been registered successfully!';
it dosent seem to want to show can anyone tell me what im missing please this is the full register.php code.
PHP Code:
<?php
if (isset($_GET['success']) && empty($_GET['success'])) {
echo 'You\'ve been registered successfully!';
} else {
if (empty($_POST) === false && empty($errors) === true) {
$register_data = array(
'username' => $_POST['username'],
'password' => $_POST['password'],
'first_name' => $_POST['first_name'],
'last_name' => $_POST['last_name'],
'email' => $_POST['email'],
);
register_user($register_data);
header('Location: register.php?success');
exit();
} else if (empty($errors) === false) {
echo output_errors($errors);
}
}
?>