I only know actionscript and html .... I know that I can do a script for login that read the variables "name" and "password" in a txt file..
Now...How do that ??
How pull this informations from the txt file ???
Help me !!!
Moderator: General Moderators
Code: Select all
<?php
$name = "whatever you want the acceptable name to be";
$password = "whatever you want the password to be";
?>Code: Select all
<?php
include("nameofyourtextfile.txt");
if ($_POST['name'] == $name && $_POST['password'] == $password)
{
header("Location: wherever you want to send them if they get it right");
}
else
{
header("Location: wherever they just came from");
}
?>