Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Posts posted by floridaflatlander

  1. Thanks for the reply.


    Is it even worth worrying about using mb_detect_encoding? I've don't think I've seen it here(or anyone talking about UTF-8 encoding/decoding) before and the only place I've seen that said it needed to be used is the book "Wicked Cool PHP"

  2. Just throwing this out there and it sounds like a jury rig but … assign your queried variables to a list and then use if statements or a loop inside the main loop if any to reassign the empty variable to   if needed.


    Then you'll have a named variable with the value from the query or   to use in your results or in your while() loop.

  3. I have a book "Wicked Cool PHP" and in the security section it suggest that one would should use utf8_decode to "prevent  potential Unicode codec problems"


    Something like this $name = utf8_decode($_POST ['name']);


    Is this a good idea? I have "<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />" in the header, are these diffent things?


    I've found web sites saying this is a bad thing



    Wicked Cool PHP suggest

    		$name = utf8_decode($_POST ['name']);
    	$name = htmlentities($name, ENT_NOQUOTES);
    	$name = str_replace("#", "&#35;", $name);
    	$name = str_replace ("%", "&#37;", $name);]


    Is this a good idea or just extra work?

    I use the standard strip_tags & mysqli_real_escape_string now.

  4. You're a web developer with an attitude and your web page doesn't even have a header?

    This is a prime example why there's enough work out there for the rest of us.


    Us? lol, Here's a menu people like us can use. http://ago.tanfa.co.uk/css/examples/menu/tutorial-h.html.  Here's another http://htmldog.com/articles/suckerfish/dropdowns/

    Also last I looked, you don't have a html header and you don't have opening and closing html tags or opening and closing body tags.

    Do you know what these things are?

  5. Why are you responding to this post when you don't have a solution? And do you even know of any menu builders that would work flawlessly on IE9? I thought so. :tease-01:


    That's good advertising Mikey, showing you can work will with others. Also if it works in chrome & firefox it should work ie9, odds are you messed something up and have something extra or missing somewhere.


    In the mean time plug your css in here http://jigsaw.w3.org/css-validator/ and your html in here http://validator.w3.org/ and see what they say. Sometimes and extra semicolon or bracket can throw things off in one browser but not another.

  6. You may be over thinking it.

    An example is the style or jscript can go on it's own page or in the html header between tags.

    Php can be on it's own page then included in an web page or enter woven in the web page.

  7. .....  The key is stored in the user's activation column, where normally is a bool integer.


    Mahngiel, do you have a time column to make the hash only usable within a certain time?


    I've been toying with this in my mind but I'm not wanting to make another column for time.

  8. Storing an MD5 hash isn't really that secure. You'd want to look at encrypting your passwords not just hashing.


    I think he's talking about a key,

    specific link with hashed (md5) key as argument
    to his email address, not a password.
  • 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.