TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

checking a username and password from a text file and then forwarding to another page

Page: 1 Reply
Sep 29th 2002#71368 Report
Member since: Sep 3rd 2002
Posts: 22
hi,
I was wondering how to check a username and password from a .txt file and then once it is correct forward to another page

eg:

login.php = page with username and password form.

[USERNAME AND PASSWORD OK! LOGGING IN]

admin.php = admin area once entered correct username and pword.


see what i mean?

thanks in advance

Will
Reply with Quote Reply
Sep 30th 2002#71400 Report
Member since: Sep 28th 2002
Posts: 85
ok when you make the form.....have a script that procceses it do a[php] if($typedinvarible == storeddatainarray) {
this part im not sure but squid will help,with redirecting you to a new page }
else {
echo ("you lieing mofo"); } [/php]
Reply with Quote Reply
Sep 30th 2002#71448 Report
Member since: Mar 20th 2001
Posts: 3367
http://www.the-gnu.dk/script_login.php

Banned - You name ripper you :p
Reply with Quote Reply
Sep 30th 2002#71550 Report
Member since: Sep 28th 2002
Posts: 85
lol sidex .....well banned is my name yours is just a memo type thoing...later ill just paste the code in here so i can use it later
[php]$user = testperson; // Brugernvn
$pass = letmein; // Password

if($brugernavn == $user && $password == $pass) {
// Begynd HTML kode på beskyttet side
?>


Login system - Logget ind



Your Logged in, How special!!!!!




// Slut HTML kode på beskyttet side
exit;
}
?>


Login system




Username:

Password:






[/php]
Reply with Quote Reply
Sep 30th 2002#71554 Report
Member since: Apr 1st 2002
Posts: 1487
is this what you want or do you actually want to read in a txt file to check the username and pass?
Reply with Quote Reply
Oct 7th 2002#72666 Report
Member since: Jan 11th 2002
Posts: 63
this part im not sure but squid will help,with redirecting you to a new page }


the code is, if memory serves; [PHP]header("page.php");[/PHP]
Reply with Quote Reply
Oct 10th 2002#73113 Report
Member since: Jun 30th 2001
Posts: 447
Nope, it's

[php]Header("Location: page.php");[/php]
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum