Jump to content

5kyy8lu3

Members
  • Posts

    257
  • Joined

  • Last visited

Everything posted by 5kyy8lu3

  1. ok thanks, after i posted this i thought about it some more and realized that even if i sent it to a new directory, anyone with half a brain would know the file is index.html or index.php so i guess it doesn't matter, i'll just have to use other methods to stay "secure" like filtering my form inputs lol
  2. try moving the session_start(); down to the second line and get rid of that space, I can't think of anything else
  3. Hi. This is a weird question and I'm not sure php can even resolve this, but here it goes: Right now, when I goto my site, you see www.kloudz.com/ it doesn't show the actual index.php file in the address bar but after i log in and it sends the user to "logged.php" using the header("Location= "); the adress bar shows the location and name of the php file like so: www.kloudz.com/logged.php This bugs me. is it possible to keep that hidden? i tried using header to send the browser to a new directory so I could use the index.php in that directory to keep the file name hidden but it seems to be resetting my session variables when i do that. any ideas? i'm only doing it for security reasons, so if you think it doesn't matter either way, that's a perfectly legit answer to me =) thanks
  4. i'm not sure it matters but you never opened <html> and <body> (unless your include file does that for ya), but either way, you could add a border to the table temporarily to see if it's even drawing the table (meaning data isn't being pulled from the database) good luck
  5. ah, i did change a few other things when i added the permissions checking, i probably left a white space somewhere, i really appreciate the help
  6. weird, the ONLY html on the page was after the headers in the else section that says you got the password wrong, hmmm lemme go see what I can find, if all else fails I'll post the code, thanks for the help
  7. I just finished my MySQL for Dummies book and I've messed around with a few things trying to teach myself. Basically I'm a noob. Here's what I have working right now: You load the webpage. You type in login info. Via _POST the submitted info sends the user to the login check page where checks the info against what's in the table. If it's correct, you get header(); to the welcome page, and if the info is wrong, it says it's incorrect and gives a link to go back to try again. What I want: I added a column in my table called permissions. After validating the login info is "ok", I want it to goto a different page depending on what info is in the permissions column for that username. Basically, I want a "back-end" page where I can use my MYSQL query page and other admin related stuff from logging in and having a "1" as my permission level, but if anyone else logs in they get different content. From what I've seen, PHP doesn't like me using header(); more than once in a page. So, how would I create dynamic content? What I'm thinking might work: I could just set a cookie variable to the permission level and use IF statements in the "logged in page" to display links to admin content (or not) depending on the permission level. Is this the way to go about it? Please know that I'm a noob, I know html very well and I've done a little C++ in the past so I'm not a complete programming noob but as far as PHP goes it's new to me, so ANY help would be very much appreciated. Thanks ahead of time, and sorry for the wall of text, I'm not very good at summarizing.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.