[WebSite]Login to Download

Junior Spellweaver
Joined
Feb 23, 2008
Messages
131
Reaction score
1
Hey everyone i wanted to know if i could get osme help with some coding or a tut i wanted to do something like when people login they can download but if they dont login they can download nothing on my site i alreayd have the login/register feature im just trying to get the other part which is "you must login to download"

my site is http://gamerzbm.org
 
Ok zzz All your gonna do is, go to the login script, since you probably downloaded it, you should see a part that says $_SESSION['somthin'];
Now make one for your validation of user right underneath it Ex: $_SESSION['valid_user'] = 1;
Now in the download links do this:
PHP:
if($_SESSION['valid_user'] < 0) {
      echo "Link";
}
And boom you'll be done
 
what was so funny at that part i did most of the work on it i never said i was pro lol

but i didnt download the login script but i did get help with it
 
Back