drcdeath Posted November 6, 2006 Share Posted November 6, 2006 I want to do a page where users can log in using MySQL + PHP and then it takes their username to their specific page. So if username was 'drcdeath' and password was 'pass' then it would take me to say drcdeath.php. If username was 'joebloggs' and pass was 'pass' then I would want it to go to joebloggs.php. You get the jist?Thanks,drcdeath. Quote Link to comment Share on other sites More sharing options...
Orio Posted November 6, 2006 Share Posted November 6, 2006 You can do that. When they register you need to create the file using fopen(), and when they log in you can redirect them using-header("Location: ".$user.".php);Orio. Quote Link to comment Share on other sites More sharing options...
drcdeath Posted November 6, 2006 Author Share Posted November 6, 2006 OK cool thanks orio! Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted November 6, 2006 Share Posted November 6, 2006 I would think most users after logging in would need the same sort of functionality. If you're expecting to have more than say, 10 users for this site, you might want to consider a different approach. Otherwise you're going to be creating dozens or hundreds of .php files that are most likely all the same or very similar. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.