Support Forums

Full Version: login php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
if (notloggedin)
{
show login field
}else{
show page
}

or
if (notloggedin)
{
show login field
die();
}

^^ That would make no since to a beginner.
(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.
(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
(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
(06-29-2011, 06:14 PM)0xE9 Wrote: [ -> ]if (notloggedin)
{
show login field
}else{
show page
}

or
if (notloggedin)
{
show login field
die();
}

Pretty much simple as that one! I needed some time to understand what the problem was lol!
I understand what you mean, but I need some time to figure how to put it into my code.