Hide Login
Moderator: General Moderators
Hide Login
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?
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
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
http://www.php.net/setcookie
and use that and if() statements
In the form, i think you could say like,
Code: Select all
<?php
echo "<input ";
if(!session_is_registered("Admin")) { echo "type="hidden""; }
echo ">";
?>- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact: