Jump to content

Archived

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

rasheedn

password not being accepted after uploading to host!

Recommended Posts

hey i just uploaded my validation file and when i tested on my pc it works fine

on the host it doesn't!

any idea y?

here's the validation code:


<?php session_start();?>
<?php
extract($_POST);
$_SESSION['user_name'] = "no";
if ($user_name=="admin")
{
if ($password=="password"){
$_SESSION['user_name'] = "yes";
header("Location: atool.php");
}
else{
echo "Wrong password or Username";
$_SESSION['user_name'] = "no";

}
}
else {
echo "Wrong password or Username";
$_SESSION['user_name'] = "no";
}
?>

Share this post


Link to post
Share on other sites

×

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.