Hide Login

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Splime
Forum Newbie
Posts: 2
Joined: Sat Jun 01, 2002 12:39 pm

Hide Login

Post by Splime »

well, i got a news login thing on my main page.. I was wondering if i could make it so only people who can update news see it.. I use php. to see look at http://splime.jamrover.com/site/index.php . I want the news login to be hidden to everyone except for me and other news people, is that possible?
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

well you could make a page that sets a cookie to show it, but im not really good with cookies, maybe someone else could help you, or you could look at

http://www.php.net/setcookie

and use that and if() statements
User avatar
gotDNS
Forum Contributor
Posts: 217
Joined: Tue May 07, 2002 5:53 pm
Location: West Chester, PA

Post by gotDNS »

In the form, i think you could say like,

Code: Select all

<?php
echo "<input ";
if(!session_is_registered("Admin")) &#123; echo "type="hidden""; &#125;
echo ">";
?>
Splime
Forum Newbie
Posts: 2
Joined: Sat Jun 01, 2002 12:39 pm

Post by Splime »

but, how would it know i am admin?
MattF
Forum Contributor
Posts: 225
Joined: Sun May 19, 2002 9:58 am
Location: Sussex, UK

Post by MattF »

You could try some EREGing with their IPs, that might work.....
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

you have to remember, alot of people have static IP's
User avatar
gotDNS
Forum Contributor
Posts: 217
Joined: Tue May 07, 2002 5:53 pm
Location: West Chester, PA

Post by gotDNS »

well, Splime, you probably would need to use something wil IP's...but instead, you could not have a form and just manually type stuff in tegh address bar. (manual get method.) Then if you wanted to you could bookmark it.
Post Reply