Jump to content

Minimeallolla

Members
  • Posts

    197
  • Joined

  • Last visited

    Never

Everything posted by Minimeallolla

  1. and for the unique ids you were talking about, for <div class="main"> i tried both dir and id and they didnt work. so class works and thats all that matters? i dont get the div attributes. i mean is it really necessary? and how do i know which div tags to assign certain attributes to?
  2. um the source code doesnt show php therefore its not the real code because i could have php on my index.php file and the source code wont show it, therefore it is not the full code lol and my external file is style.css o.O ?? \= >.< <link href='style.css' rel='stylesheet'> <-- = external file filled with my css ? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-language" content="en"> <meta name="keywords" content="free, simple, search, find, discover, play, engage, share, sharing, entertainment, fun, games"> <meta name="description" content="MySite is currently under construction and is constantly being amended."> <link rel="favicon.ico" href="http://www.mysite.giacjr.dino-hosting.net/favicon.ico"> <link href='style.css' rel='stylesheet'> <title> MySite </title> </head> <body> <div id="body"> <div class="header"> <div class="headertext"> <a href="/register.php">Register</a> <a href="/login.php">Login</a> <a href="/games.php">Games</a> <a href="/aboutus.php">AboutUs</a> </div> <div class="logo"> <img src="/images/mysite.png" alt ="MySite"><br> </div> </div> <div class="main"> content goes here </div> <div class="footer"> <div class="footerleft"> © GiacJr and Rohan 2010 </div> <div class="footerright"> <a href="mailto:giacjr@giacjr.dino-hosting.net">Contact us</a> </div> </div> </div> </body> </html>
  3. erm, as i've stated, that is Not my code. that is straight out of the source code. ( right click - source code. ) My code Does include style.css and php. I just want to make the source code more presentable. *I would start by moving your css into an external file* - that is done and has always been done. So I should put eg <div class="main"> and than for all the rest of the div tags <div id=" other div tags are the same as this? ">
  4. no i mean like if username password != blabla die message appears.
  5. I have a login code that uses die() and when the die code is executed it terminates the rest of the html code. I cant put the html before the php because of meta tag and head tag issues >.< I need a proper working error function that works properly \= like if you login wrong on myspace or facebook a little error message appears in a box and works perfectly. On mine it appears at the bottom of the form and cuts of teh rest of the source code and html >.<
  6. but the die ( ) is in the php and it will be echoed above the form and look bad lol im going to make a thread about the die ( ) code, i need a proper error function.
  7. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <?php include ("information.php"); ?> <title> MySite - Log in</title> <?php include ("background.php"); ?> </head> <body> <div class="header"> <div class="headertext"> <a href="/index.php">Home</a> <a href="/register.php">Register</a> <a href="/games.php">Games</a> <a href="/aboutus.php">AboutUs</a> </div> <div class="logo"> <a href="/index.php"><img src="/images/mysite.png" alt ="MySite"></a><br> </div> </div> <div class="main"> <div align="center"><b>Log in</b> <form action="" method="post"> <table class="centered" border="0"> <tr><td>Username:</td><td> <input type="text" name="username" maxlength="40"> </td></tr> <tr><td>Password:</td><td> <input type="password" name="pass" maxlength="50"> </td></tr> <tr><td colspan="2" align="right"> <input type="submit" name="submit" value="Login"> </td></tr></table> </form></div> <?php // Connects to your Database include ("database.php"); // Checks if there is a login cookie if(isset($_COOKIE['ID_my_site'])); { $username = ( $_COOKIE['ID_my_site'] ); $pass = ( $_COOKIE['Key_my_site'] ); $check = mysql_query("SELECT * FROM users WHERE username = '$username' AND password = '$pass'")or die(mysql_error()); while($info = mysql_fetch_array( $check )) { if ($pass == $info['password']) print("<meta http-equiv='Refresh' content='0;index.php' />"); } } // If the login form is submitted if (isset($_POST['submit'])) { // Checks if they filled it in if(!$_POST['username'] | !$_POST['pass']) die('<center>You did not fill in a required field!</center>'); // Secures input if (!get_magic_quotes_gpc()) $_POST['email'] = mysql_real_escape_string(stripslashes(trim($_POST['email']))); $_POST['username'] = mysql_real_escape_string(stripslashes(trim($_POST['username']))); $_POST['pass'] = mysql_real_escape_string(stripslashes(trim($_POST['pass']))); // Checks it against the database $check = mysql_query("SELECT * FROM users WHERE username = '".$_POST['username']."'")or die(mysql_error()); // Gives error if user dosen't exist $check2 = mysql_num_rows($check); if ($check2 == 0) die('<center>Account does not exist! Please register first.</center>'); while($info = mysql_fetch_array( $check )) { $password= mysql_real_escape_string(stripslashes(trim($_POST['password']))); $pass= mysql_real_escape_string(stripslashes(trim($_POST['pass']))); $salt = 's+(_a*'; $_POST['pass'] = md5($_POST['pass'].$salt); // Gives error if the password is wrong if ($_POST['pass'] != $info['password']) die('<center>Invalid username or password!</center>'); else { // If login is ok then add a cookie $username= mysql_real_escape_string(stripslashes(trim($_POST['username']))); $hour = time() + 3600; setcookie("ID_my_site", $_POST['username'], $hour); setcookie("Key_my_site", $_POST['pass'], $hour); // Redirect them if ($pass == $info['password']) print "Log in Successful!"; print("<meta http-equiv='Refresh' content='0;index.php' />"); } } } ?> </div> <div class="footer"> <div class="footerleft"> </div> <div class="footerright"> </div> </div> </body> </html> I want the errors to go under the registration form and for that, the registration form must be at the top, interferring with the <head> and <meta> >.< I know die is not the best thing to use but i really cant figure out a working error function \=
  8. *I would start by moving your css into an external file* "Give a man a fish and he will eat for a day. Teach a man to fish and he will eat for a lifetime."
  9. <?php if ( $_POST['username'] != 'thorpe' ) { die (" if function? "); ?>
  10. I might be a noob but im not That nooby lol. Im using an if function >.<
  11. @Thorpe They are, that is my source code, not my page code. Which divs should be ids and how will i know in the future which one to pick?
  12. How would I redirect if the code is after the <head> tag? My code is a bit complicated and needs to go under my html code but wont redirect successfully because of <head>. I'm using print("<meta http-equiv='Refresh' content='0;index.php' />"); to redirect.
  13. I'm not really sure where this topic should be, so im just going to put it here. Is my source code neat or needs a better layout? Leave feedback on how to make a neat source code. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-language" content="en"> <meta name="keywords" content="free, simple, search, find, discover, play, engage, share, sharing, entertainment, fun, games"> <meta name="description" content="MySite is currently under construction and is constantly being amended."> <link rel="favicon.ico" href="http://www.rohan.giacjr.dino-hosting.net/favicon.ico"> <link href='style.css' rel='stylesheet'> <title> MySite </title> <style type="text/css"> body { background-color:black; background-repeat:no-repeat; background-attachment:fixed; } A:link { COLOR: black; TEXT-DECORATION: none; font-weight: normal } A:visited { COLOR: black; TEXT-DECORATION: none; font-weight: normal } A:active { COLOR: green; TEXT-DECORATION: none } A:hover { COLOR: blue; TEXT-DECORATION: none; font-weight: none } a > img { border: 0; } </style> </head> <div class="header"> <div class="headertext"> <a href="/index.php">Home</a> <a href="/loginn.php">Login</a> <a href="/registerr.php">Register</a> <a href="/gamess.php">Games</a> <a href="/aboutuss.php">AboutUs</a> </div> <div class="logo"> <a href="/index.php"><img src="/images/mysite.png" alt ="MySite"></a><br> </div> </div> <div class="main"> text content goes here <br> </div> <div class="footer"> <div class="footerleft"> © GiacJr and Rohan 2010 </div> <div class="footerright"> <a href="/contact.php">Contact Us</a> </div> </div> </body> </html>
  14. well ive shown you the code and its not in the code? and theres nothing inserting it? so i have nooo ideaa whats going onlol \=
  15. its completely not there, it must be the validator that is playing up \=
  16. yes and theres a shortcut -cntrl F for find. and there is a search option in the ftp that searches all files and folders and it detected nothing as "<div align="topgames">"
  17. lol ok... this is odd.. "No records found." <div align="topgames">
  18. yes, well, it says its in the source code but its not in my codes.. ill show.. this is games.php <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="favicon.ico" href="http://www.rohan.giacjr.dino-hosting.net/favicon.ico"> <link href='style.css' rel='stylesheet'> <title> MySite - Games </title> <?php include ("linkcolor.php"); include ("background.php"); include ("database.php"); ?> </head> <body> <?php include ("nav.php"); ?> <div align=center> <img src="Games.png" border="0" alt="Games"> </div> <?php include ("games logged in or logged out.php"); ?> <div align=left> <?php include ("gamelist.php"); ?> </div><div align=center> <?php include ("top games.php"); ?> </div> </body> </html> this is gamelist.php <div id="gameshide"> <b>Games:</b> <span id="games" onClick="document.all.games.style.display ='none'"><br> <a href="/games/13daysinhell.php">13 Days In Hell</a><br> <a href="/games/achilles.php">Achilles</a><br> <a href="/games/blosics2.php">Blosics 2</a><br> <a href="/games/bubbletanks2.php">Bubble Tanks 2</a><br> <a href="/games/bubblebobble.php">Bubble Bobble</a><br> <a href="/games/bubbletrouble.php">Bubble Trouble</a><br> <a href="/games/bloons.php">Bloons</a><br> <a href="/games/bloons4td.php">Bloons TD 4</a><br> <a href="/games/boxhead2play.php">BoxHead 2 Play</a><br> <a href="/games/deadfrontier.php">Dead Frontier</a><br> <a href="/games/desktoptowerdefence.php">Desktop Tower Defence</a><br> <a href="/games/interactivebuddy.php">Interactive Buddy</a><br> <a href="/games/linerider.php">Line Rider</a><br> <a href="/games/pandemic2.php">Pandemic 2</a><br> <a href="/games/simplerts.php">SimpleRTS</a><br> <a href="/games/stickwar.php">Stick War</a><br> <a href="/games/stormthehouse3.php">Storm The House 3</a><br> <a href="/games/swordsandsandals2.php">Swords and Sandals2</a><br> <a href="/games/swordsandsandals3.php">Swords and Sandals 3:Solo Ultratus</a><br> <a href="/games/supersmashflash.php">Super Smash Flash</a><br> <a href="/games/trappedwithzombies.php">Trapped With Zombies</a><br> <a href="/games/ultimateassasin2.php">Ultimate Assassin 2</a><br> <a href="/games/zombieassault2.php">SAS: Zombie Assault 2:Insane Asylum</a> </span> </div> <p> <a href="javascript:;" onmousedown="if(document.getElementById('gameshide').style.display == 'none') { document.getElementById('gameshide').style.display = 'block'; } else{ document.getElementById('gameshide').style.display = 'none'; }">Hide/Show Games</a> <br></p> this is topgames.php if you have a game request, log in and comment the name of it and we will upload it ASAP! <h2><font color="red">Top Games</font></h2><h4> <a href="stormthehouse3.php">Storm The House 3 <br> <img src="stormthehouse.jpg" border="0" alt="" /></a><p><br> <a href="blosics2.php">Blosics 2 <br> <img src="blosics2.jpg" border="0" alt="" /></a><p><br> <a href="zombieassault2.php">SAS: Zombie Assault 2:Insane Asylum <br> <img src="zombieassault.jpg" border="0" alt="" /></a><p><br> <a href="swordsandsandals2.php">Swords and Sandals 2 <br> <img src="swords_and_sandals2.jpg" border="0" alt="" /></a><p><br> <a href="swordsandsandals3.php">Swords and Sandals3: Solo Ultratus <br> <img src="swords_sandals_3_multiplae_ultratus.jpg" border="0" alt="" /></a><br><br> <a href="bubbletanks2.php">Bubble Tanks 2 <br> <img src="bubbletanks.jpg" border="0" alt="" /></a><br><br> <a href="boxhead.php">BoxHead 2Play <br> <img src="boxhead2play.gif" border="0" alt="" /></a><br><br> <a href="zombieassault2.php">SAS: Zombie Assault 2:Insane Asylum <br> <img src="zombie assault.jpg" border="0" alt="" /></a><br><br> <a href="bloons4td.php">Bloons 4 TD <br> <img src="btd4-title.jpg" border="0" alt="" /></a><br><br> <a href="bloons.php">Bloons <br> <img src="bloons.jpg" border="0" alt="" /></a><br><br></h4> I dont know about you but i cant see it anywhere im MY codes. -.- source code is lying lol
  19. http://validator.w3.org/check?uri=http%3A%2F%2Fmysite.giacjr.dino-hosting.net%2Fgames.php&charset=%28detect+automatically%29&doctype=Inline&ss=1&outline=1&group=0&No200=1&verbose=1&st=1&user-agent=W3C_Validator%2F1.1 the <div align="top game"> is nowhere to be found o.O ??
  20. ok now its saying value of attribute "ALIGN" cannot be "TOPGAMES"; must be one of "LEFT", "CENTER", "RIGHT", "JUSTIFY" <br><div align="topgames"> I dont have <div align="topgames"> anywhere ? the code before <div id="gameshide"> <b>Games:</b> <span id="games" onClick="document.all.games.style.display ='none'"><br> <a href="/games/13daysinhell.php">13 Days In Hell</a><br> <a href="/games/achilles.php">Achilles</a><br> <a href="/games/blosics2.php">Blosics 2</a><br> <a href="/games/bubbletanks2.php">Bubble Tanks 2</a><br> <a href="/games/bubblebobble.php">Bubble Bobble</a><br> <a href="/games/bubbletrouble.php">Bubble Trouble</a><br> <a href="/games/bloons.php">Bloons</a><br> <a href="/games/bloons4td.php">Bloons TD 4</a><br> <a href="/games/boxhead2play.php">BoxHead 2 Play</a><br> <a href="/games/deadfrontier.php">Dead Frontier</a><br> <a href="/games/desktoptowerdefence.php">Desktop Tower Defence</a><br> <a href="/games/interactivebuddy.php">Interactive Buddy</a><br> <a href="/games/linerider.php">Line Rider</a><br> <a href="/games/pandemic2.php">Pandemic 2</a><br> <a href="/games/simplerts.php">SimpleRTS</a><br> <a href="/games/stickwar.php">Stick War</a><br> <a href="/games/stormthehouse3.php">Storm The House 3</a><br> <a href="/games/swordsandsandals2.php">Swords and Sandals2</a><br> <a href="/games/swordsandsandals3.php">Swords and Sandals 3:Solo Ultratus</a><br> <a href="/games/supersmashflash.php">Super Smash Flash</a><br> <a href="/games/trappedwithzombies.php">Trapped With Zombies</a><br> <a href="/games/ultimateassasin2.php">Ultimate Assassin 2</a><br> <a href="/games/zombieassault2.php">SAS: Zombie Assault 2:Insane Asylum</a> </span> </div> <p> <a href="javascript:;" onmousedown="if(document.getElementById('gameshide').style.display == 'none') { document.getElementById('gameshide').style.display = 'block'; } else{ document.getElementById('gameshide').style.display = 'none'; }">Hide/Show Games</a><br> the code after ( there is no code inbetween(this is it) ) <br><div align="center"><b> if you have a game request, log in and comment the name of it and we will upload it ASAP! <h2><font color="red">Top Games</font></h2><h4> <a href="stormthehouse3.php">Storm The House 3 <br> <img src="stormthehouse.jpg" border="0" alt="" /></a><p><br> <a href="blosics2.php">Blosics 2 <br> <img src="blosics2.jpg" border="0" alt="" /></a><p><br> <a href="zombieassault2.php">SAS: Zombie Assault 2:Insane Asylum <br> <img src="zombieassault.jpg" border="0" alt="" /></a><p><br> <a href="swordsandsandals2.php">Swords and Sandals 2 <br> <img src="swords_and_sandals2.jpg" border="0" alt="" /></a><p><br> <a href="swordsandsandals3.php">Swords and Sandals3: Solo Ultratus <br> <img src="swords_sandals_3_multiplae_ultratus.jpg" border="0" alt="" /></a><br><br> <a href="bubbletanks2.php">Bubble Tanks 2 <br> <img src="bubbletanks.jpg" border="0" alt="" /></a><br><br> <a href="boxhead.php">BoxHead 2Play <br> <img src="boxhead2play.gif" border="0" alt="" /></a><br><br> <a href="zombieassault2.php">SAS: Zombie Assault 2:Insane Asylum <br> <img src="zombie assault.jpg" border="0" alt="" /></a><br><br> <a href="bloons4td.php">Bloons 4 TD <br> <img src="btd4-title.jpg" border="0" alt="" /></a><br><br> <a href="bloons.php">Bloons <br> <img src="bloons.jpg" border="0" alt="" /></a><br><br></h4>
  21. well initially they were in body but thorpe confused me with this "<link> elements belong within the <head> and <li> must be within a <ul>, <ol> or <li>." I merely misunderstood what he was trying to tell me.
  22. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="favicon.ico" href="http://www.rohan.giacjr.dino-hosting.net/favicon.ico"> <link href='style.css' rel='stylesheet'> <title>MySite</title> <style type="text/css"> A:link { COLOR: black; TEXT-DECORATION: none; font-weight: normal } A:visited { COLOR: black; TEXT-DECORATION: none; font-weight: normal } A:active { COLOR: green; TEXT-DECORATION: none } A:hover { COLOR: #8DEEEE; TEXT-DECORATION: none; font-weight: none } a > img { border: 0; } </style><style type="text/css"> body { background: url('backgroundfp.png'); text-align: center; } </style> <div class='navbar'><ul> <li><a href='/index.php'>Home</a></li> <li><a href='/login.php'>Log in</a></li> <li><a href='/register.php'>Register</a></li> <li><a href='/games.php'>Games</a></li> </ul></div></head> <body> <center><h4><font color="yellow"> Number of website views:</font><font color="white"> 016424</font></h4></center><div align="center"> <img border="0" src="flamethrower.gif" alt="flame thrower"><img border="0" src="construction icon.png" alt="connstruction"><font color="blue"><b>This website is currently under construction and is constantly being amended.</b></font><img border="0" src="construction icon.png" alt="construction"><br> </div> <center>You are not logged in. <a href='login.php'>Please log in to gain further access.</a></center> <div align="center"><p><br><p> Since MySite has very limit content and I cannot be bothered to think of anything, I will simply let this talentless gif animation provide entertainment.. =D <br><img border="0" src="violin.gif" alt="entertainment "> </div> <br> <p><br></p> <p><br></p> <p><br></p> <p><br></p> <p><br></p> <p><br></p> <p><br> <br> <div align=left> <a href="aboutus.php">About us</a> </div> </body> </html> or source code is there..
×
×
  • 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.