derekm Posted July 12, 2006 Share Posted July 12, 2006 I've been given the task of putting a website up for my department. Unfortunately our organizations IT division does not have MySQL installed on the server and the prospect of it looks dim. :(Being [b]very[/b] new to PHP, I find myself in a quandry.I have a form, to update my department heads message on the main page, that is an include based on a users cookie. However, I need to make sure that no one stumbles across this form and updates it unless they are authorized. Does PHP provide a way to detect the exact referring page? Would this be poor security due to, my understanding, some servers not reporting the referring page?I've thought about splitting the form so the submit button is not in the include file but it looks like garbage when I do that.Any help for a newbie would be greatly appreciated. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/14420-sorry-for-dumb-newbie-question/ Share on other sites More sharing options...
GingerRobot Posted July 12, 2006 Share Posted July 12, 2006 Could you not include a password in the php file and have that as one of the inputs on the form? Quote Link to comment https://forums.phpfreaks.com/topic/14420-sorry-for-dumb-newbie-question/#findComment-56985 Share on other sites More sharing options...
cmgmyr Posted July 12, 2006 Share Posted July 12, 2006 I guess if you really wanted to, you can make a flat file database to store some user data like level. if level = 1 (admin) then you can see the form.-Chris Quote Link to comment https://forums.phpfreaks.com/topic/14420-sorry-for-dumb-newbie-question/#findComment-56986 Share on other sites More sharing options...
derekm Posted July 13, 2006 Author Share Posted July 13, 2006 Thanks for the responses. I think I wil probably try the password as part of the form while I research how to do flat file database layout.Thanks again. Quote Link to comment https://forums.phpfreaks.com/topic/14420-sorry-for-dumb-newbie-question/#findComment-57318 Share on other sites More sharing options...
trq Posted July 13, 2006 Share Posted July 13, 2006 There is also the option of sqlite, much quicker than mysql in many situations. Quote Link to comment https://forums.phpfreaks.com/topic/14420-sorry-for-dumb-newbie-question/#findComment-57321 Share on other sites More sharing options...
hostfreak Posted July 13, 2006 Share Posted July 13, 2006 Why not use sessions, and user levels? The if the session is a certain user level it will show it etc. Quote Link to comment https://forums.phpfreaks.com/topic/14420-sorry-for-dumb-newbie-question/#findComment-57423 Share on other sites More sharing options...
pixy Posted July 13, 2006 Share Posted July 13, 2006 ^ Agreed, use sessions. They're more secure and easy to use. Quote Link to comment https://forums.phpfreaks.com/topic/14420-sorry-for-dumb-newbie-question/#findComment-57425 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.