Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
|
|
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 |
|
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 ?> Your Logged in, How special!!!!! // Slut HTML kode på beskyttet side exit; } ?> [/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 |
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 |
© Web Media Network Limited. All rights reserved. No part of this website may be reproduced without written permission. Photoshop is a registered trademark of Adobe Inc.. TeamPhotoshop.com is not associated in any way with Adobe, nor is an offical Photoshop website. |