Jump to content

XeNoMoRpH1030

Members
  • Posts

    72
  • Joined

  • Last visited

    Never

Everything posted by XeNoMoRpH1030

  1. Not bad. The only thing I dislike is the top navigation. When you hover over it, the width goes from 180px to 200px which moves it.
  2. Glad I could help
  3. Not sure about the format in doing If-else statements as that is generally personal preference, but definitely fixing the coding errors should help. Another thing I noticed, you just compare $_POST['password'] (set to $password) to the MD5 password from the database. Edit Beat me to it...
  4. Actually, to make it even more accessible, couldn't you just do it like this: First layer has all your text. Second layer has your image that covers the first layer. Create a third layer that is exactly like the first, but change the color to transparent (color: transparent) so the text can still be highlighted/copied and the link is clickable? I tested it, and it seems to work. It's even possible you could achieve the same effect by using opacity settings so the second layer could be come the first, but the two still blend together. Not sure what you are really trying to achieve with this.
  5. Well, hopefully you are storing the password in the database with MD5, so then what you are doing should work. If not, I highly recommend doing so. Sorry, just read it and it seems you are, so that's good. One thing that caught my eye if($newpassword=$confirmnewpassword) That should be == right?
  6. You probably need to specify a header so the browser knows what it is. Right now, it's being treated as plain text. header('Content-type: application/pdf');
  7. PHP is pretty smart. Depending on your configuration, you can omit the quotes and it will work. Doesn't mean it is right though.
  8. You'd most likely would add that when they are logging in. So, if it's a successful login, you would set all your $_SESSION variables there. Also, when you logout and destroy the session, the $_SESSION scope shouldn't contain anything. As a fail safe, I generally would do $_SESSION['myvar'] = ""; That's probably not needed anymore, but I have no doubt the session scope is empty, or at least contains empty strings.
  9. If that's what you want, of course. I'm just saying part of the image is getting cut off and there is no way to determine if that's the correct part that should be cropped or not.
  10. It was the same for me in IE8.
  11. I also believe there is confusion. I get the impression you are trying to use values in inputs to fill those values? If that's the case, PHP isn't even used. Javascript can definitely grab those values though and compile a URL with the variables.
  12. Caching will do that to you. For those who don't know, you use: <meta http-equiv="refresh" content="30;url=http://www.mynewurl.com">
  13. I'd read up on the differences between relative and absolute paths.
  14. http://www.chipwreck.de/blog/software/cwcrop/cwcrop-demo/ That's what I use. If you want it to automatically crop it, that won't be a problem. Just need to decide if you want it to be "smart" or just start from the top/bottom left/right. I mention "smart" because I'm sure you could figure out how to do it in the middle, if that seems logical.
  15. The .htaccess file is accessed like a hierarchy. If the root has a .htaccess, it will run that. If a subfolder does not, it will still run the root. I'm not sure if it will run both though if you go to the subfolder. Hopefully something like this will work so if it's the root, it will redirect to beta2: redirect 301 ^/$ beta2/index.php Not sure if it needs to be the full URL though as I can't say I've used redirect, only RewriteRule.
  16. Well, I think you are in the wrong section as it doesn't seem to relate to PHP. Mind posting what's in RunTool.js, at least the run() function?
  17. So you are talking about pagination? Here is something I found from searching that could help. http://www.tonymarston.net/php-mysql/pagination.html
  18. $start = strtotime('2010-02-24'); $today = date('U'); $sevendaystime = date('U', $start + 7 * 86400); $fourteendaystime = date('U', $start + 14 * 86400 ); $twentyeightdaystime = date('U', $start + 28 * 86400 ); if ($today >= $twentyeightdaystime) { echo "More than or equal to 28 days"; } elseif ($today >= $fourteendaystime) { echo "More than or equal to 14 days"; } elseif ($today >= $sevendaystime) { echo "More than or equal to 7 days"; } else { echo "Less than 7 days"; } As I said earlier, you can't just compare 2010-02-24 to another date like 2010-03-15. They are simply strings. It's like trying to say A > B.
  19. As you said, I don't think it's possible to send email without a SMTP server. http://www.php.net/manual/en/mail.configuration.php shows you the configuration options. You could technically use a different SMTP server, but it would most likely require SMTP authentication as most servers do not allow relaying. If you need a more advanced mail function, try the pear package PEAR::Mail.
  20. Hrm, it sounds like you have a defined what is out of proportion and what isn't. When you crop, part of the image get's cut off. That's just how it is. If you want to retain all of the image, then proportional resizing is the only way. You'd just end up with white space.
  21. The mail() function is extremely basic. It can't do SMTP authentication, but you technically should have to since most SMTP servers on localhost (your machine) would allow emails to be sent from itself without authentication. If you are looking for a SMTP server, there are plenty of free ones out there. Just google "free SMTP server". If you have a SMTP server on the localmachine, nothing in the php.ini file should have to be changed (I think).
  22. Sounds like you need to verify that the incorrect values were not also selected. So, in your example: if($question1 == 1 && $question3 == 2 && $question4 == 3 && $question2 == "") If question2 was checked, it would equal 0. Not sure what the elseifs are for. Seems like it would either be correct or not?
  23. It will probably take several formulas to get working right, depending on the exact dimensions you want. Lets use your example. The picture is 199x190 pixels. When you resize it, it's 90x86. What would the ideal size be? 90x90?
  24. My guess is that JavaScript has no clue what tbrowOption, tbdataHeight1, and tbdataHeight2 are. You can try the below code. <script language=javascript> function toggledisplaymode(selectType){ var tbrowOption = document.getElementById('tbrowOption'); var tbdataHeight1= document.getElementById('tbdataHeight1'); var tbdataHeight2= document.getElementById('tbdataHeight2'); if (selectType=="drop"){ tbrowOption.style.display = "block"; tbdataHeight1.style.display = "none"; tbdataHeight2.style.display = "none"; }else if(selectType=="textarea"){ tbrowOption.style.display = "none"; tbdataHeight1.style.display = "block"; tbdataHeight2.style.display = "block"; }else{ tbrowOption.style.display = "none"; tbdataHeight1.style.display = "none"; tbdataHeight2.style.display = "none"; } } </script> Hiding table columns can be tricky though, from my experience. What is it supposed to do when "working properly"?
×
×
  • 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.