<?php
ob_start();
// **************************************************************
// * Company_Add.php *
// * Keyin screen for company add/edit. *
// **************************************************************
// * Ver By Date Description *
// * 4.01 GJJD 04/25/16 Modify for PHP 5.6 *
// **************************************************************
include 'Session_Start.php';
include 'db_connect_inc.php';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
<title>Contact Display</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="NewCss.css">
<script type='text/javascript' src='//code.jquery.com/jquery-2.1.3.js'></script>
<script type="text/javascript" src="http://digitalbush.com/wp-content/uploads/2014/10/jquery.maskedinput.js"></script>
<script type="text/javascript">
function MM_goToURL()
{
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
</script>
</head>
<body>
<?php
include 'Check_Login.php';
include 'Prog_Count_inc.php';
$Display_Phone = $_SESSION['South'];
$_SESSION['South'] = str_replace("/", "", $_SESSION['South']);
$_SESSION['South'] = str_replace("(", "", $_SESSION['South']);
$_SESSION['South'] = str_replace(")", "", $_SESSION['South']);
$_SESSION['South'] = str_replace(" ", "", $_SESSION['South']);
$_SESSION['South'] = str_replace("-", "", $_SESSION['South']);
$_SESSION['South'] = trim($_SESSION['South']);
$work = strlen($_SESSION['South']);
if ($work != 10)
{
$_SESSION['Message'] = "Invalid phone number entered!";
$_SESSION['Error'] = "Y";
$work = $_SESSION['Last_Page'];
Header ("Location:$work");
exit;
}
$Data = $_SESSION['South'];
include 'menu_inc.php';
Ref:
Open in new window
.Please remove the whitespace and re-test.