login php - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Webmaster Support (https://www.supportforums.net/forumdisplay.php?fid=36) +---- Forum: Website Development (https://www.supportforums.net/forumdisplay.php?fid=43) +---- Thread: login php (/showthread.php?tid=20055) |
login php - Miku - 06-29-2011 I got my php membership function work, but I have no idea how to make my pages shows only the login field instead of the content. Its a crappy site. If you don't mind take a look of my site RE: login php - 0xE9 - 06-29-2011 if (notloggedin) { show login field }else{ show page } or if (notloggedin) { show login field die(); } RE: login php - TeraByTe - 06-30-2011 ^^ That would make no since to a beginner. RE: login php - 0xE9 - 06-30-2011 (06-30-2011, 04:20 AM)TeraByTe Wrote: ^^ That would make no since to a beginner.It should do, pretty basic. He should understand if statements and the die() function if he's going to be doing stuff like this. RE: login php - TeraByTe - 06-30-2011 (06-30-2011, 04:25 AM)0xE9 Wrote: It should do, pretty basic. He should understand if statements and the die() function if he's going to be doing stuff like this. We shall see what he says :p RE: login php - TeraByTe - 06-30-2011 (06-30-2011, 04:25 AM)0xE9 Wrote: It should do, pretty basic. He should understand if statements and the die() function if he's going to be doing stuff like this. We shall see what he says :p RE: login php - Dr.BrokenGod - 06-30-2011 (06-29-2011, 06:14 PM)0xE9 Wrote: if (notloggedin) Pretty much simple as that one! I needed some time to understand what the problem was lol! RE: login php - Miku - 07-01-2011 I understand what you mean, but I need some time to figure how to put it into my code. RE: login php - ★ASI_F★™ - 07-01-2011 http://www.phpeasystep.com/phptu/6.html can help you out |