Guest Posted June 19, 2008 Share Posted June 19, 2008 Hi Php Freaks, I just wanted to know what would be the best way to go about doing this. I would like a login with a password and username that takes the user to a specific URL Example User: bob gets taken to bob23.php etc? and User: jenny gets taken to cats.php ________________ Thanks Guys Link to comment https://forums.phpfreaks.com/topic/110904-username-and-password/ Share on other sites More sharing options...
waynew Posted June 19, 2008 Share Posted June 19, 2008 You could do it a better way. For example, you could have one page called profile.php that takes in a Get variable. The variable of the $_GET could be the username. So, I'm just after logging in, my username is waynewex, and I am redirected to profile.jsp?username=waynewex On the profile page <?php $username = $_GET['username']; ?> Then maybe use that username to query a database and display all of their details. If you want to stick to your other idea, I suggest having a look at PHP's file functions. All the best. Link to comment https://forums.phpfreaks.com/topic/110904-username-and-password/#findComment-569003 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.