Redirect after insert works on local setup but not on live
Below code works fine on my wampp setup but not on the live server (Hostgator) Happening on all scripts. Data gets into the database ok but will not redirect. Is it possible some setting on hostgator is causing me issues, perhaps file permissions or someting similar?
<?php include($_SERVER['DOCUMENT_ROOT'].'/Connections/mysqli.php'); ?>
<?php include($_SERVER['DOCUMENT_ROOT'].'/webassist/mysqli/rsobj.php'); ?>
<?php include($_SERVER['DOCUMENT_ROOT'].'/webassist/mysqli/queryobj.php'); ?>
<?php
if (isset($_POST["fname"])) {
$pwd = md5($_POST["password"]);
$InsertQuery = new WA_MySQLi_Query($mysqli);
$InsertQuery->Action = "insert";
$InsertQuery->Table = "bcr_user";
$InsertQuery->bindColumn("first_name", "s", "".((isset($_POST["fname"]))?$_POST["fname"]:"") ."", "WA_DEFAULT");
$InsertQuery->bindColumn("email", "s", "".((isset($_POST["email"]))?$_POST["email"]:"") ."", "WA_DEFAULT");
$InsertQuery->bindColumn("phone_number", "s", "".((isset($_POST["phone"]))?$_POST["phone"]:"") ."", "WA_DEFAULT");
$InsertQuery->bindColumn("password", "s", "$pwd", "WA_DEFAULT");
$InsertQuery->saveInSession("");
$InsertQuery->execute();
$InsertGoTo = "/end-users";
if (function_exists("rel2abs")) $InsertGoTo = $InsertGoTo?rel2abs($InsertGoTo,dirname(__FILE__)):"";
$InsertQuery->redirect($InsertGoTo);
}
?>