saqwild Posted February 26, 2007 Share Posted February 26, 2007 Hello. i am just a beginner trying to learn all by meselft. i need you people to help on to restrict user from downloading any file from the site until not registered, the download link may open a new page showing 1) if user is not registered, open the register page [or[ 2) if user is registered, show the download link/file name Thanks Link to comment https://forums.phpfreaks.com/topic/40134-help-on-user-validation/ Share on other sites More sharing options...
papaface Posted February 26, 2007 Share Posted February 26, 2007 You should really learn the basics of PHP before attempting something like this. You should also attempt to write some code before posting here, we dont write scripts, we help with errors in them. Link to comment https://forums.phpfreaks.com/topic/40134-help-on-user-validation/#findComment-194160 Share on other sites More sharing options...
vbnullchar Posted February 26, 2007 Share Posted February 26, 2007 on the top of your code you should put code like this if(is_registered($user_id)) { /* show donwload link or something*/ } else { /* go to login page */ header("Location: ./login.php") } Link to comment https://forums.phpfreaks.com/topic/40134-help-on-user-validation/#findComment-194169 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.