-
Posts
403 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Sniffy
-
Also, if your image is in a parent directory use ../ to access it.../img.gif
-
I don't think jpegs can be though.
-
Well, see you in the new year then...
-
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'>
-
BinaryBind.net - The binary and coding network.*Binary and Coding Combined*
-
Wait, void(0) means return(nothing) do yeah, you're right.I just posted another solution just for the guy to learn by.
-
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>
-
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>
-
Well, it's kind of sensable, they can't just except anything from anyone, unless it was tested in front of their own eyes.
-
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/> and <.nl2br(htmlentities($somevar)) - converts newlines to <br> and replaces all other html tags with > and <.
-
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.
-
Yeah, I find associative arrays very useful, but I always called them literal arrays, is that correct?
-
Thanks for posting the question, now I know how to make a random value in PHP.
-
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.
-
We'll adventually blow eachother up then....
-
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.
-
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.
-
Good luck, it takes a lot of work but you'll get a great result!
-
Cool, so it's better to use justsomeguy's method to conserve file size?
-
So there actually is really lasers, that just makes technology the more to be feared of....