Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: login to view jalbums
11-16-2012, 12:19 AM #1
- Join Date
- Mar 2011
- Thanked 1 Time in 1 Post
login to view jalbums
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">
login2.php :PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<link href="global.css" rel="stylesheet" type="text/css" />
<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">
I must be missing something cause its not working, but Im not sure what. Could anyone help?