Jump to content

cssfreakie

Staff Alumni
  • Posts

    1,674
  • Joined

  • Last visited

Everything posted by cssfreakie

  1. They only thing i can think of is some sort of white list in a .htaccess file.
  2. yes. pretty much anything can be cracked nothing is 100% secure. But you can make it harder for them. right now i am pretty sure just a simple OCR would suffice to break your captcha http://en.wikipedia.org/wiki/Optical_character_recognition You might want to have a look in the captcha google provides, it's much harder to crack as far as text because their own ocr can't crack it. (they use words from old books if i am correct) http://www.google.com/recaptcha hope this helps.
  3. Well i can think over several ways of someone editing your output, but for now i would double check footer.php. Anyway this is starting to become a php question. I recommend to look in your code/database for iframes
  4. well since i don't know your system i can't say precise, but the functions include() and require() are ways in php to include another file. in html an <iframe> can load another page inside the existing markup as well.
  5. The most important thing about position absolute is that it depends on a parent element with a position other than static.
  6. To be honest, stop using css hacks, they are not needed, and if you need to adjust for other browsers, use conditional comments. Besides that, i recommend you design for firefox, and adjust if needed for any other browser. (also check out the sticky) Furthermore the design you made can be easily done without the use of positioning absolute or relative. I recommend to read about the properties float and clear. Ones you created something with that i am happy to help, but fixing this takes more time, and the code is already 'infected' with bad habits, so i don't see any usefulness in that. If your looking for a good on floats check out: http://css.maxdesign.com.au/floatutorial/ Hope this helps.
  7. Yep just As i thought, a slight invalid use of positioning absolute. Before you apply this I really recommend you read about both position relative and position absolute and how to use them/how they really work. They are often combined and there is a good reason for that. The following code works for FF4, haven't tested it for other browsers because i am cooking at the moment, but I am pretty sure it should work for any browser. #box { background-color: white; margin-left: auto; margin-right: auto; position: relative; /* I added this, please read about positioning, because it's vital for a better understanding*/ width: 972px; } #login { background-color: transparent; border: medium none; color: black; left: 585px; /* changed the value */ position: absolute; top: 199px; z-index: 20; }
  8. Did you read the topic i linked to , and did you try it??
  9. yes the only way for things to show up is that they apear in your output. have a look at the bottom of your script and lok for <ins style="display:inline-table;border:none;height:90px;margin:0;padding:0;position:relative;visibility:visible;width:728px"><ins style="display:block;border:none;height:90px;margin:0;padding:0;position:relative;visibility:visible;width:728px" id="aswift_0_anchor"><iframe width="728" scrolling="no" height="90" frameborder="0" style="left:0;position:absolute;top:0;" name="aswift_0" id="aswift_0" vspace="0" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&&s.handlers,h=H&&H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&&d&&(!d.body||!d.body.firstChild)){if(h.call){i+='.call';setTimeout(h,0)}else if(h.match){i+='.nav';w.location.replace(h)}s.log&&s.log.push(i)}" marginheight="0" marginwidth="0" hspace="0" allowtransparency="true"></iframe></ins> </ins> if you remove that the it should be gone.
  10. the looks of the mark-up depend on the CSS used. So if you were to give it other colors or anything use CSS. If you want people to critic your website for looks and tell what you can improve. Place this in the website critics forum.
  11. well css is not adding this. Since this is mark-up (css sets style to mark up nothing more) You might want to have a look in to the component that produces the menu. (so that is a php file)
  12. Do you have an online example of this, not into reading at the moment Anyway if you adjust the size of your window, and objects than move you m ight want to consider using a min-width on the wrapper that does not have a position of absolute. Assuming that wrapper has a positon of relative. (so serves as the parent of the absolute positioned element).
  13. well at least you got an error please mark the topic solved saves others time reading through
  14. I really like this one: http://www.tuxradar.com/practicalphp
  15. to prevent sql injection, there is not need to use htmlentities, you can use that on output to prevent xss attacks. So as above is suggested use either mysql_real_escape_string to prevent sql injections or prepared statements. So these are to prevent sql injection. Besides that it's a good habit to always check that the values are as expected. for integers you can use type casting to force them into being an integer: (int)$value; And for emails and such use filter_var. Just make sure values are as expected. And if you have a for instance a ISBN number make sure it's the length you expect etcetera. Or State code 2 characters a-z. On output there are some other things you can do to prevent not sql injection, but for instance xss attack. That could be htmlspecialchars or htmlentities. Here is a bite size tutorial that will make you understand it even better.http://www.phpfreaks.com/tutorial/php-security
  16. well if it is exactly the same it should be al right. But do you have a connection with the database? Do you get any error? place this above your script error_reporting(E_ALL); ini_set("display_errors", 1);
  17. As posted previous change the order of the li's as described above and it is fixed.
  18. Language, the greatest invention ever
  19. I hope you do realize that widths come in fixed and fluid forms....? Probably yes, but only idiots that never had a decent client and refuse to read up would do that. Most people that blame on IE, do not understand that IE does not compensate errors made by the person himself. And yes IE 5 and 6 have some weird things, but it will take you only a day to read about it and apply it. Also conditional comments are perfect for that. And seriously with IE9 they did a very good job! In my opinion anyone that recommends not to design for clients that use IE, should start selling vegetables at a real life market.
  20. @redixx Ah i missed that part where you assigned it I stand corrected And using the ternary operator, even looks cooler.
  21. Did you try out the codes above? if so look at this piece: foreach ($var as $key=>$value) { $s = ''; if (isset($_POST[$name])&& $key == $_POST[$name]) { $s = 'selected="selected"'; } echo '<option value="' . $key . '" ' . $s . '>' . $value . '</option>'; } What it does is check for each array value if $_POST['name'] is set, and if so compares the value of the array key with the value of $_POST['name']. IF that condition is true it means the form is submitted and that that value is the one someone selected. making it output a different string than it does by default. So in other words it will remember what the person selected.
  22. is don't see a function named showSexuality() in your code above. Your code just provides a drop down based on an array. Although i am pretty sure that this: $selected = ($sexuality == $key) ? 'selected="selected"' : ''; will produced an error on first run since there is no value assigned to $sexuality -edit: lol, i didn't noticed above are 2 different peeps lol
  23. I happen to have written something today, The input used is an array, so you can easily use it for database values. <?php error_reporting(E_ALL); ini_set("display_errors", 1); header('Content-type: text/html; charset=utf-8'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link type="text/css" rel="stylesheet" href="csfs/style.css" /> <title></title> </head> <body> <div id="wrapper"> <?php $var = array( '1.1'=>'moo', '1.2'=>'maa', '1.3'=>'boo', '1.4'=>'baa', '1.5'=>'zaa'); function BuildSelect($var, $name, $size){ echo '<select name="'.$name.'" size="'.$size.'">'; foreach ($var as $key=>$value) { $s = ''; if (isset($_POST[$name])&& $key == $_POST[$name]) { $s = 'selected="selected"'; } echo '<option value="' . $key . '" ' . $s . '>' . $value . '</option>'; } echo '</select>'; } ?> <form action="" method="post"> <?php BuildSelect($var, 'moeloe', 1 ) ?> <input type="submit" name="submit" value="submit" /> </form> </div> </body> </html> p.s. normaly you would seperate the php from the html by using an include, but now you can just test it at once
  24. it could very well be that you require a new connection handle, since your using another database. http://www.php.net/manual/en/function.mysql-select-db.php#52584
  25. when you do not have anything in the form of a script (or a suitable question, on how to..) and you want others to write that for you, it's best that you post a similar question in the freelance forum. We either post/assist here with existing scripts or pointing people in the right direction to look.
×
×
  • 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.