damienwc Posted April 11, 2007 Share Posted April 11, 2007 My goal is to create a user login form that will send different users to different pages depending on their login name. I want the form to write the $name variable plus the session ID (to allow multiple users), and then redirect them to a URL specific to that user. Example: Band-X logs into my site thru the login form, and then is redirected to mysite.com/Band-X/tools.html where they are able to customize certain areas of the site related to that band. Link to comment https://forums.phpfreaks.com/topic/46523-noob-needs-help-session-id-and-forms/ Share on other sites More sharing options...
clown[NOR] Posted April 11, 2007 Share Posted April 11, 2007 well... then you should do something like this if (isset($_SESSION['userID'])) { include("bands/$_SESSION['userID']/tools.php"); } or something down that line Link to comment https://forums.phpfreaks.com/topic/46523-noob-needs-help-session-id-and-forms/#findComment-226435 Share on other sites More sharing options...
damienwc Posted April 11, 2007 Author Share Posted April 11, 2007 What would be the best way to store this data? Should I use a cookie or pass it to a URL? Could someone please help me with a little more code for the form? Link to comment https://forums.phpfreaks.com/topic/46523-noob-needs-help-session-id-and-forms/#findComment-226447 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.