Hi, I'm new programming with PHP and I am having this problem :
Here are the codes :
<?php
if (isset($_GET['success']) && empty($_GET['success'])) {
echo "<br>";
echo "<h4>You have been registered successfully.</h4>";
} 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: admissions.php?success");
exit();
} else if (empty($errors) === false) {
// Print error
echo output_errors($errors);
}
?>
// End of the codes...
Everything is working fine at my PC as localhost, but I put it's not working fine with my hosting. I mean, the header("Location: admissions.php?success"); works fine at my localhost, like reloading the page with SUCCESS, but with the hosting, then the admissions.php?success is not executed, is showing me a blank page. If I type the admissions.php?success at the browser, then it shows me the page...
How can I fix that problem ?
Thanks