Im trying to create a page on my mmp.power1.com site that has a login ( its the login page) upon entering the right login and password, it takes you to a jalbum gallery you can view only with that login.

The way I want it set up is in your file directory you have a folder called clientgalleries where the login pulls from. your login name would be whatever you titled the clients folder within /clientgalleries. For ex, joe would have a gallery in /clientgalleries/joesmo, and his username would then be joesmo. The password would be whatever password you set the gallery as when uploading your jalbum gallery to that folder.

My site is wordpress and what i have so far is

The login page :
PHP Code:
<center><form name="login1" action="login2.php" method="post">
Enter Customer Login:
<
input type="text" name="username" size="15">
<
input type="password" name="password" size="15">
<
input type="submit" value="Login">
</
form></center


login2.php :
PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
<html>
<head>
<title>Client Login</title>
<link href="global.css" rel="stylesheet" type="text/css" />
</head>
 
<body onLoad="document.login2.submit()">
<p>Please wait while your gallery loads</p>
 
<form name="login2" method="post" action="clientgalleries/<?php print $_REQUEST['username'?>/index.php">

<input type="hidden" name="username" value="<?php print $_REQUEST['username'?>">
<input type="hidden" name="password" value="<?php print $_REQUEST['password'?>">
<input type="hidden" name="page" value="/clientgalleries/<?php print $_REQUEST['username'?>/index.php">
</form>
 
</body>
</html>


I must be missing something cause its not working, but Im not sure what. Could anyone help?