Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-15-2012, 11:19 PM   PM User | #1
lmorales
Regular Coder

 
Join Date: Mar 2011
Posts: 192
Thanks: 8
Thanked 1 Time in 1 Post
lmorales is an unknown quantity at this point
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">
</
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?
lmorales is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:32 AM.


Advertisement
Log in to turn off these ads.