Jump to content

floridaflatlander

Members
  • Posts

    671
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by floridaflatlander

  1. What do you mean wont die? A couple of months ago I was doing some stuff with a cookie that would cease when the browser was closed and look and it was still present in name after I closed and reopened the browser however the cookie would not work on the site, it had expired. I can't remember which browser using.

     

    PS. open your browser and click the cookie name, it will tell you when it expires.  If it is a past date or time it is no good, it's just listed in the browser waiting to be deleted.

  2.  

    if (!empty($row[username])) // he got it.

    {

    $_SESSION[username] = $row[username];

    echo "Welcome $_POST[username]! You've been successfully logged in. <a href=\"/index.php\" title=\"Click here to go back to the homepage.\">Home Page</a></li></ul>";;

    exit();

    }

     

    I don't know why you have two semi colons above.

     

    you need session_start(); at the top of every page that you're going to use sessions, it needs to be the first thing on the page after the opening php tag and a few comments if any.

     

    you can

    echo "Welcome {$row['username']}! You've been successfully logged in. <a href=\"/index.php\" title=\"Click here to go back to the homepage.\">Home Page</a></li></ul>";

     

    or

     

    echo "Welcome {$_SESSION[username]} You've been successfully logged in. <a href=\"/index.php\" title=\"Click here to go back to the homepage.\">Home Page</a></li></ul>";

     

    or get rid of all that double quote stuff

     

    echo 'Welcome '.$_SESSION[username].'! You've been successfully logged in. <a href="/index.php" title="Click here to go back to the homepage.">Home Page</a></li></ul>';

  3. Well not to be a smart a but something has changed.

     

    Get and use fire fox's firebug(I think chrome does the same thing), open fire bug click the div tags until you get to the tags in question. Click them, firebug well tell you where the style is coming from if any, what the css file name is, what line the style is coming from, the inheritance if any and the name of the style.

  4. ... does the browser read/load that file even if no styles are being used on the current page? Especially, if you have images in your css file, does the browser load them, although they are not actually displayed on the page?

    A browser will load and read the file even if there is no styles on it and it loads images even if they aren't displayed on your page.

     

    Go here http://www.websiteoptimization.com/services/analyze/ and enter and test your url and you'll see that the browser loads files and images even if they are not used.

  5. I would think your file would need some type of Get statement for search and if it was true echo the new header

     

    Also where is your doc types, in the file above and in the headers? You're starting your header then calling headers.

  6. I dont have a webserver so I have no webserver to configure and I wouldnt know how to configure a webserver even if I had one. And of course my computer never does what the how-books say it is supposed to do.  So just how am I supposed to learn the php language let alone make it work?

     

    Also besides the docs there are videos on youtube that can help walk you through installing xamp and others on your computer. When you make a password for you mysql db make it an easy one to remember and never change it(this is for your local computer). If you don't know what your doing it can be a bear to fix if you change your pw at the control panel later on.

    Take your time, you can do it.

×
×
  • 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.