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. Link to comment https://forums.phpfreaks.com/topic/26365-would-it-be-extremely-hard-if-i-wanted-to-do-this/ 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. Link to comment https://forums.phpfreaks.com/topic/26365-would-it-be-extremely-hard-if-i-wanted-to-do-this/#findComment-120546 Share on other sites More sharing options...
drcdeath Posted November 6, 2006 Author Share Posted November 6, 2006 OK cool thanks orio! Link to comment https://forums.phpfreaks.com/topic/26365-would-it-be-extremely-hard-if-i-wanted-to-do-this/#findComment-120547 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. Link to comment https://forums.phpfreaks.com/topic/26365-would-it-be-extremely-hard-if-i-wanted-to-do-this/#findComment-120558 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.