Help With Script!
Moderator: General Moderators
-
justinkingsmusic
- Forum Newbie
- Posts: 5
- Joined: Tue Feb 02, 2010 3:54 pm
Help With Script!
Can someone please direct me to a website with a login/registration php script tutorial? Thanks
- Grizzzzzzzzzz
- Forum Contributor
- Posts: 125
- Joined: Wed Sep 02, 2009 8:51 am
-
justinkingsmusic
- Forum Newbie
- Posts: 5
- Joined: Tue Feb 02, 2010 3:54 pm
Re: Help With Script!
Do you know a webpage that has everything? I also need a login/registration page where it directs a user to a different page. Depending on the user
- Grizzzzzzzzzz
- Forum Contributor
- Posts: 125
- Joined: Wed Sep 02, 2009 8:51 am
Re: Help With Script!
i'm sure you could work out something from that, all the hard work is done for you in the first google result.
Something basic like like a redirect depending on username could be achieved by doing something like;
on successful login.
Something basic like like a redirect depending on username could be achieved by doing something like;
Code: Select all
if ($username == "Whatever")
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://whatever.com/page1.php\">";
}
else
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://whatever.com/page2.php\">";
}