Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
login php
#1
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
Reply
#2
if (notloggedin)
{
show login field
}else{
show page
}

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

Need website or forum help?
[Image: logo.png]
Reply
#3
^^ That would make no since to a beginner.
Reply
#4
(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.
Need website or forum help?
[Image: logo.png]
Reply
#5
(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
Reply
#6
(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
Reply
#7
(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!
Reply
#8
I understand what you mean, but I need some time to figure how to put it into my code.
Reply
#9
http://www.phpeasystep.com/phptu/6.html can help you out
[Image: 0b0033.gif]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  problem with popup login nandahosting 5 1,197 07-04-2011, 06:44 PM
Last Post: AceInfinity
  login? Miku 12 3,072 06-03-2011, 07:58 AM
Last Post: Laughynose
  [PHP] - PHP White Paper --([-S7N-])-- 1 934 04-13-2010, 09:42 PM
Last Post: SLiM

Forum Jump:


Users browsing this thread: 1 Guest(s)