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...
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.
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.
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.