![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
floridaflatlander
Members-
Posts
671 -
Joined
-
Last visited
-
Days Won
1
Everything posted by floridaflatlander
-
How can I remove the white space on the side?
floridaflatlander replied to bugzy's topic in CSS Help
You need to get fire foxes firebug, it is a big help. When you use it, it will highlight the margins and padding. Also when you hover over or click an html tag it will tell you what file and line number a style is coming from(a big help) and the inheritence of any. -
How can I remove the white space on the side?
floridaflatlander replied to bugzy's topic in CSS Help
There is a color(white) and a margin for the body. -
How can I remove the white space on the side?
floridaflatlander replied to bugzy's topic in CSS Help
also try a body background color like a shade of gray or something, just in case something happens in the future the colors will at least blend. also container needs to be #container{ width:100%; ............... } -
How can I remove the white space on the side?
floridaflatlander replied to bugzy's topic in CSS Help
try body {margin: 0;} -
Well call me an idiot yoursurrogategod. I clicked the above link.
-
How to track a user agreement, Big picture.
floridaflatlander replied to floridaflatlander's topic in Application Design
Thanks for the reply. I looked at SMF and tried to figure out what SMF does by looking at their members table, I think they use a cookie/session too. Anyway, I'll come back tomorrow morning and mark solved. Thanks -
What is the big picture on an effective way to implement an user agreement? Do most people use a special db table column indicating that a user has agreed to the user agreement or do they use a session or cookie and if it exist let the user proceed to register? Thanks
-
That's my vote
-
Using utf8_decode for inputs
floridaflatlander replied to floridaflatlander's topic in PHP Coding Help
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" -
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.
-
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("#", "#", $name); $name = str_replace ("%", "%", $name);] Is this a good idea or just extra work? I use the standard strip_tags & mysqli_real_escape_string now.
-
Sh--. The answer is no, sorry Mahngiel. Anyway there are some links for the OP.
-
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?
-
You're a web developer with an attitude and your web page doesn't even have a header?
-
CSS looks good, 72 errors in your html. Fix those then see what happens.
-
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.
-
I know what they mean.
-
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.
-
a table but both id's?
-
I would say yes or have sessions for the registering steps.
-
Also it sometimes helps to run you html source through http://validator.w3.org. It will tell you if you have missing or open tags.
-
How do I restrict people from spamming a like button?
floridaflatlander replied to Shockdot's topic in PHP Coding Help
That's what coppermine photo album does, sets a cookie for a vote on a photo. -
Haven't thought about that, thanks.
-
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.
-
I think he's talking about a key, to his email address, not a password.