Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 03-14-2006, 03:36 AM
Kenny Fix Kenny Fix is offline
Junior Member
 
Join Date: 03-14-06
Posts: 2
iTrader: 0 / 0%
Directing specific users to a specific folder

Hi all

Hope someone can help...

I want to create a simple log in form on my site which takes users to a specific cPanel password protected directory. The form needs to recognise the user name and thus direct that specific user to a specific password protected folder (eg: if joe1 logs in with the correct password he will be taken to the password protected folder named 'joefolder1').

All the login/password details need to be entered directly into a form on my site rather than using the default browser username/password pop up in Internet Explorer.

Sorry if this is basic stuff but I have trawled the forums for a similar posting and can't find anything that helps me out.

Any pointers would be genuinely appreciated.

Thanks in advance.

Kenny.
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 03-19-2006, 04:16 AM
Immo's Avatar
Immo Immo is offline
v7n Mentor
 
Join Date: 03-26-04
Location: Warrington, England
Posts: 1,540
iTrader: 0 / 0%
In the database that stores the usernames and passwords you could add another column that specifies the directory the person is forwarded to.

After you have done that you can then do something easy in php like this.

Assuming you use the sessions as detailed below, its like this, oh and the 1 on the logged in session means Yes.

<?php
if ($_Session['loggedin'] == "1") {
header ("Location: $data['forwarded directory out of database'];
}
?>

If you need a hand with it im sure if you post the login script then someone can help you.
 
Reply With Quote
  #3  
Old 03-19-2006, 06:33 AM
Kenny Fix Kenny Fix is offline
Junior Member
 
Join Date: 03-14-06
Posts: 2
iTrader: 0 / 0%
Immo... sincere thanks for this - i was hoping it would be something fairly simple along these lines so big thanks for taking the time to explain what i need to do.

Muchos Gracias.

Kenny.
 
Reply With Quote
  #4  
Old 03-19-2006, 08:57 AM
Immo's Avatar
Immo Immo is offline
v7n Mentor
 
Join Date: 03-26-04
Location: Warrington, England
Posts: 1,540
iTrader: 0 / 0%
No probs, any other problems you know where to ask
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question: How do I call specific CSS for ie? digitaloverlay Coding Forum 4 02-19-2008 09:25 PM
Looking for a traffic from specific area JustRetarded Marketing Forum 1 03-16-2007 08:03 AM
When I have no specific question to ask...... Batch Forum Lobby 18 12-29-2006 01:00 PM
mod_rewrite for specific url Gabriel Coding Forum 0 04-19-2004 12:48 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 12:17 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC