Jump to content

Show Login Name From Array


jackr1909

Recommended Posts

a table like this:

 

 

<?php

 

$usr_username = $_POST['username'];

$usr_password = $_POST['password'];

$usr_name = $_POST['name'];

 

 

$users = array();

$passwords = array();

 

$users[0] = 'user1';

$passwords[0] = 'pass1';

 

$users[1] = 'user1';

$passwords[1] = 'pass1';

 

for($i=0;$i<count($users);$i++){

 

if($users[$i] == $usr_username && $passwords[$i] == $usr_password){

 

 

  header( 'Location: http://www.theblogspace.net/login/loginrefferingtoken.html' ) ;

 

 

} else {

 

  header( 'Location: http://www.theblogspace.net/login/loginfail.php' ) ;

 

}

 

}

 

?>

 

I want to show that on a members page corresponding to their login.

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.