Jump to content

Little Goat

Members
  • Posts

    733
  • Joined

  • Last visited

Posts posted by Little Goat

  1. <input type="button" id="jumper" value="clickme" onmouseover="jump()" />then in jump():

    button=document.getElementById('jumper');if(button.style.left == '40'){button.style.left = '80';}else{button.style.left = '40';}

    of course, you can change 40 and 80 to whatever you want.

  2. or even easier, use a switch statement:

    switch  ($_GET['id']) {case 'this' :echo "the code for page this";break;case 'that' :echo "the code for page that";break;default :echo 'default page here';break;}

    that is equal to this:

    if($_GET['id'] == 'this'){echo 'the code for page this';}elseif($_GET['id'] == 'that'){echo "the code for page that";}else{echo "the default page";}

    go here for more info: http://us3.php.net/switch

  3. so what I would do is add a column to your database called filetype. then you add the filetype with $_FILES['yourfile']['type'] and if it's an image, you print the html code, if it's a text file, you include it, and if it's a movie you embed it.

  4. for the embedding, you would have to find out what kind of file each thing is, then display them accordingly. I think you could save the file type into the database, because it does send that in the $_FILES['yourfile']['type] doesn't it?

  5. I used PHP for Dummies. if you go to www.dummies.com then you will probably be able to order it from there. you should try the tutorials first, though. I did.

  6. one thing I would do is make verticle-align in css work the same as the valign attribute for tables, except not just tables, whatever you put the property on. (unless there is some better way to do it.)

  7. it may be your php.ini file. I have never been able to send email on xampp because I could never get the php.ini set to what it needed to be; it always threw an error. as for your host, I have the same problem. the email seems to send fine, but I never get it. don't know why.

    Date

    well, I think that is where the unix timestamp (or whatever it's called) goes from. it looks like the date() function doesn't recognize the format you are using.

  8. I noticed something really nice that they added in Opera 9 to make it easier to block unwanted content.  You can just right-click on a page and choose Block Content and start clicking on images you want to destroy.  Once you click Done, you'll no longer see content from those servers.  You can manage that under Tools -> Advanced -> Blocked Content.

    what I'm wondering is is there a plugin to block all ads like FF has? I know you could just take a few months and find every single ad you didn't want and destroy it... :) ??
  9. ok, so I need to search for ALL occurrances of a Regular Expression inside a string, and return them in an array. I'm pretty sure that there is a function to do that, but I can't remember what it is. :) thanksLG

×
×
  • Create New...