Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
User authentication - individual pages
Old 06-29-2005, 07:24 AM User authentication - individual pages
Walker's Avatar
Experienced Talker

Posts: 47
Location: Lanashire, UK
Trades: 0
First of all sorry I am a complete n00b

How do I go about setting up individual pages depending on the username and password? i.e. if X is the username then I want x.htm to load... I assume you add some field n the database but what do you call it e.t.c. and what type...

I have used this tutorial

so assume all script is from there.

Thank you!

Adam
Walker is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-29-2005, 07:59 AM
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
you might want to rethink your solution mate.

if you have 20,000 users then with this method you would require 20,000 pages ouch !!!!!

Alternatively you could have a privs field in your user table.

500 been super down to 100 been normal.

Then you could have just one page, the user logs in and you grab is privs (store in a session or cookie). You can then display content based on the privs of the user.

Much much easier than a page for each person.

Ibbo
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Old 06-29-2005, 08:05 AM
Walker's Avatar
Experienced Talker

Posts: 47
Location: Lanashire, UK
Trades: 0
There will only be 10. Sorry you will have to explain things more as I really dont know much but at least im putting effort into learning.

Last edited by Walker; 06-29-2005 at 02:14 PM..
Walker is offline
Reply With Quote
View Public Profile
 
Old 06-29-2005, 04:08 PM
Walker's Avatar
Experienced Talker

Posts: 47
Location: Lanashire, UK
Trades: 0
How do I make the user go to a page once they have logged in successfully? I tried
PHP Code:
 header"Location: Scripts/Denise.htm" ); 
where the tutorial said to place successful login code as this is where I want the user to go...
Walker is offline
Reply With Quote
View Public Profile
 
Old 06-30-2005, 11:56 PM
reli4nt's Avatar
Extreme Talker

Posts: 168
Location: New York
Trades: 0
set one page with content populated by whatever is stored in the database under that username. Either that or add a field to the db with a url to their page and send them to that.
__________________

Please login or register to view this content. Registration is FREE

Designing the world we live in.
Defining the terms we live by.
reli4nt is offline
Reply With Quote
View Public Profile Visit reli4nt's homepage!
 
Old 07-01-2005, 11:47 AM
Walker's Avatar
Experienced Talker

Posts: 47
Location: Lanashire, UK
Trades: 0
what would be the script to redirect the user to their page assuming I call the new field page What type should the field be?

Sorry I'm really new to this.
Walker is offline
Reply With Quote
View Public Profile
 
Old 07-01-2005, 05:17 PM
metho's Avatar
Ultra Talker

Posts: 481
Location: Gold Coast - Brisbane QLD, Australia
Trades: 0
Walker, you have to get a grip on dynamic content. Don't think of a 'page' as a flat file with static content. A dynamic page pulls its content from a database, xml or rss feed. One page can have millions of combinations of content to suit the required circumstances.

You don't need a 'script' to redirect a user. Redirection is done with the header('Location: ') function. As far as your other question regarding fields is concerned, I think you need to go and read some primers on php dynamic webpages until these concepts sink in. Basically you've opened pandora's box and the number of questions that you'll want to ask is beyond the scope of this thread.
__________________
I do
Please login or register to view this content. Registration is FREE
based.
Spend a lot of time in
Please login or register to view this content. Registration is FREE
.
And
Please login or register to view this content. Registration is FREE
chews up the rest.
metho is offline
Reply With Quote
View Public Profile Visit metho's homepage!
 
Old 07-16-2005, 11:46 AM
Walker's Avatar
Experienced Talker

Posts: 47
Location: Lanashire, UK
Trades: 0
Sorted it. Cheers,
Walker is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to User authentication - individual pages
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.85361 seconds with 12 queries