Jump to content

include 'file.php' is printing my vars before i tell them to.


acid.waste

Recommended Posts

Alrite, i have a configs.php that holds a bunch of information (Login info mostly) and when i do

 

$UsrNme = $_POST["user"];
$Passw = $_POST["pass"];

include 'configs.php'

if ($UsrNme == $UserName && $Passw == $Password) {
setcookie("User", "True", time()+3600);
echo "Welcome {$UsrNme}; You have been successfully logged in!";
} else {
echo "Sorry, the username {$UsrNme} was not successfully logged in.";
}

 

It prints my configs.php instead of using the variables $UserName and $Password to check against UsrNme and Passw... Am i doing something wrong or is this supposed to happen?

config.php has

 

$UserName = "Username";

$Password = "Password";

$AdminEmail = "[email protected]";

$sqlHOST = "host.host.host";

$sqlUser = "username";

$sqlPass = "Password";

$sqlDatabase = "database";

$ForumName = "Test";

$ForumName = "http://www.lol.com/forum/";

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.