Jump to content

Sniffy

Members
  • Posts

    403
  • Joined

  • Last visited

Everything posted by Sniffy

  1. Also, if your image is in a parent directory use ../ to access it.../img.gif
  2. I don't think jpegs can be though.
  3. Well, see you in the new year then...
  4. Do you mean like layer the images? <!-- Put in head !--><style type='text/css'>#img1{ z-index: 1; top: 0px; left: 0px;}#img2{ z-index: 2; top: 0px; left: 0px;}</style> <!-- Put in body !--><img src='####.gif' id='img1'><img src='####.gif' id='img2'>
  5. Sniffy

    Domain Name

    BinaryBind.net - The binary and coding network.*Binary and Coding Combined*
  6. Wait, void(0) means return(nothing) do yeah, you're right.I just posted another solution just for the guy to learn by.
  7. Also, you can use javascript void(0). <html><head></head><body><input type='text' id='txtvalue' value=""><a href='java script: document.getElementById("txtvalue").value = "10";'>Click me</a></body></html>
  8. Sniffy

    updates.txt error

    Okay, I'll just post the correct code for adminCheck.php <?phperror_reporting(E_ALL);?><html><head><title>Bobville</title><link rel='stylesheet' type='text/css' href='style.css'></head><body><img src='logo.gif' width='100%' height='40'><br><table cellspacing='0' width='100%'><tr><td width='200'><div class='menu'><a href='index.php'>Home</a><br><a href='games/index.php'>Games</a><br><a href='movies/index.php'>Movies</a><br><a href='tutorials/index.php'>Tutorials</a><br><a href='links.php'>Links</a></td><td width='600'><div id='content'><font face="Comic Sans MS"><i><div id='titlebar'><font size="2">Updates</font>:</i></font></div><div id='main'><?php$adminID = $_POST['adminID'];$adminPass = $_POST['adminPass'];$entryTitle = htmlentities($_POST['entryTitle']);$content = nl2br(htmlentities($_POST['content']));$fName = "/home/www/sniffy.awardspace.com/updates.txt";$fHandle = fopen($fName, 'r+');if($adminID == "####" && $adminPass == "####"){fwrite($fHandle, "<div id='content'><div id='titlebar'>".$entryTitle."</div><div id='main'>".$content."</div></div>");}else{echo "Your Admin ID or Password was incorrect.";}fclose($fHandle);?></div></div></td><td width='200'></td></tr></table></body></html> Here's adminLogin.php <?phperror_reporting(E_ALL);?><html><head><title>Bobville</title><link rel='stylesheet' type='text/css' href='style.css'></head><body><img src='logo.gif' width='100%' height='40'><br><table cellspacing='0' width='100%'><tr><td width='200'><div class='menu'><a href='index.php'>Home</a><br><a href='games/index.php'>Games</a><br><a href='movies/index.php'>Movies</a><br><a href='tutorials/index.php'>Tutorials</a><br><a href='links.php'>Links</a></td><td width='600'><div id='content'><font face="Comic Sans MS"><i><div id='titlebar'><font size="2">Updates</font>:</i></font></div><div id='main'><div align='center'><form method='post' action='adminCheck.php'>Admin ID:<input type='text' width='200' name='adminID'><br />Admin Pass:<input type='password' width='200' name='adminPass'><br /><br />Entry Title:<input type='text' name='entryTitle' width='200'><br />Content:<br><textarea cols='65' rows='15' name='content'></textarea><br><input type='submit' value='Submit Entry'></form></div></div></div></td><td width='200'></td></tr></table></body></html>
  9. Sniffy

    Whoa...

    Well, it's kind of sensable, they can't just except anything from anyone, unless it was tested in front of their own eyes.
  10. Sniffy

    updates.txt error

    I'm having another error with the update frontpage admin feature in my site and such, it doesn't seem to be to complex so please take a look at it to see what I did wrong.adminCheck.php <?phperror_reporting(E_ALL);?><html><head><title>Bobville</title><link rel='stylesheet' type='text/css' href='style.css'></head><body><img src='logo.gif' width='100%' height='40'><br><table cellspacing='0' width='100%'><tr><td width='200'><div class='menu'><a href='index.php'>Home</a><br><a href='games/index.php'>Games</a><br><a href='movies/index.php'>Movies</a><br><a href='tutorials/index.php'>Tutorials</a><br><a href='links.php'>Links</a></td><td width='600'><div id='content'><font face="Comic Sans MS"><i><div id='titlebar'><font size="2">Updates</font>:</i></font></div><div id='main'><?php$adminID = $_POST['adminID'];$adminPass = $_POST['adminPass'];$entryTitle = htmlentities($_POST['entryTitle']);$content = htmlentities(nl2br($_POST['content']));$fName = "updates.txt";$fHandle = fopen($fname, 'a+');if($adminID = "####" && $adminPass == "####"){fwrite($fHandle, "<div id='content'><div id='titlebar'>".$entryTitle."</div><div id='main'>".$content."</div></div>";}else{echo "Your Admin ID or Password was incorrect.";}?></div></div></td><td width='200'></td></tr></table></body></html> The Error Parse error: syntax error, unexpected ';' in /home/www/sniffy.awardspace.com/adminCheck.php on line 34 Nevermind, fixed all of the errors. Just to make some use of this thread, I'll have to note, htmlentities(nl2br()) and nl2br(htmlentities()) do different things.htmlentities(nl2br($somevar)) - take all of the new lines and other html tags and converts them to normal characters/&gt and &lt.nl2br(htmlentities($somevar)) - converts newlines to <br> and replaces all other html tags with &gt and &lt.
  11. Sniffy

    Random Outcome.

    Okay, just checking.
  12. You did a really good job of your CSS tutorials. Everytime I need something, I just search throught the examples and refs until I find what I need.It taught me everything I was looking for on the display property.
  13. Sniffy

    Random Outcome.

    Yeah, I find associative arrays very useful, but I always called them literal arrays, is that correct?
  14. Sniffy

    Random Outcome.

    Thanks for posting the question, now I know how to make a random value in PHP.
  15. Sniffy

    File Problem

    Are you going to show me it?
  16. Sniffy

    weird ???

    Maybe....Try it.
  17. Sniffy

    Domain Name

    binarybind.net?It sounds kind of cool...but as aspnetguy said, it's going to be long term so put a lot of thought into it.
  18. Sniffy

    weird ???

    Do you have flash player 7?Or maybe you should try Help>About Registration to see if this is true.
  19. Sniffy

    Whoa...

    We'll adventually blow eachother up then....
  20. Sniffy

    Auto Linebreaks?

    Just some PHP Questons:Can I have some good tutorials to the various functions of PHP, and regular expressions?I've used simple flags in JS but never knew about using regular expressions.
  21. Sniffy

    Whoa...

    Well I do know lasers have been around for awhile, and not as weapons, and in very simple forms; it shocked me when it's now being used on planes.
  22. Good luck, it takes a lot of work but you'll get a great result!
  23. Sniffy

    Auto Linebreaks?

    Cool, so it's better to use justsomeguy's method to conserve file size?
  24. Sniffy

    Whoa...

    So there actually is really lasers, that just makes technology the more to be feared of....
×
×
  • Create New...