<?php
$username=$_POST["uname"];
$password=$_POST["pass"];
if($username=="shashwata"&&$password==12345){
header('location:home.php');
}
else{
echo ("bye");
}
?>
I am new in php, and this code is just for testing purpose..The main problem is the above code is running nicely inside localhost and gives the correct output but when i am trying to run this inside the hosting site it gives the warning.. i have checked there are no white space, no line space before and after
error_reporting( E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
even after that it works fine in localhost but all problem arises at the hosting site. please help me.. thanks in advance.