Help With Script!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
justinkingsmusic
Forum Newbie
Posts: 5
Joined: Tue Feb 02, 2010 3:54 pm

Help With Script!

Post by justinkingsmusic »

Can someone please direct me to a website with a login/registration php script tutorial? Thanks
User avatar
Grizzzzzzzzzz
Forum Contributor
Posts: 125
Joined: Wed Sep 02, 2009 8:51 am

Re: Help With Script!

Post by Grizzzzzzzzzz »

justinkingsmusic
Forum Newbie
Posts: 5
Joined: Tue Feb 02, 2010 3:54 pm

Re: Help With Script!

Post by justinkingsmusic »

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
User avatar
Grizzzzzzzzzz
Forum Contributor
Posts: 125
Joined: Wed Sep 02, 2009 8:51 am

Re: Help With Script!

Post by Grizzzzzzzzzz »

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;

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\">";
}
 
on successful login.
Post Reply