Jump to content

GameYin

Members
  • Posts

    389
  • Joined

  • Last visited

Everything posted by GameYin

  1. AH, didn't see the second page, well try looking now. Also, I said before, I'm still learning the sessions things.
  2. Ok, changed things up a bit..Now I have a syntax error again...www.gameyin.com/login.php <?php session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Login | DevPlooth.com</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="description" content="Find webmasters, web designers, SEO techs, web developers, designers PHP experts, html experts, javascript experts, css experts, SEO advice, marketing tips and resources. Our forum provides a way for people to find web help and support!" /> <meta name="keywords" content="webmaster forum, web design, web developers, developer forum, web forum, php experts, web marketing, seo experts, database experts, support forum, programming, html, css, javascript, mysql, sql, web" /> <link rel="stylesheet" href="style.css" type="text/css" /> </head> <body> <div class="body-container"> <div class="body-outer" id="body-outer"> <div class="body-header"> <div class="logo"> <a href="index.php">DevPlooth.com</a><br /> <small>Forums | Arcade | Tutorials | Web Hosting |</small> </div> <div class="tmenu"> <b><a class="add" href="index.php">Home</a></b> <? if (empty($_SESSION['n'])) { ?> <a href="register.php">Register</a> <a href="login.php">Login</a> <? }else{ ?> <a href="logout.php">Logout</a> <a href="usercp/index.php">UserCP</a> <? } ?> <a href="arcade/index.php">Arcade</a> <a href="tutorials/index.php">Tutorials</a> <a href="forums/index.php">Forums</a> <a href="proxy/index.php">Proxy</a> </div> <div class="search"> <form action="search.php" method="post" style="display:inline;"> <div> <input type="text" name="search" class="input-search" value="Enter your Search Query" onblur="if(this.value=='') this.value='Enter your Search Query';" onfocus="if(this.value=='Enter your Search Query') this.value='';" /> <input type="image" src="images/search.gif" /></div> </form> </div> </div> </div> </div> <div class="navbar"> <small>Please browse our tutorials in many languages!</small> <br /> <table id="navbar"><tr><td>»<a href="tutorials/xhtml/index.html">(X)HTML</a></td></tr> <tr><td>»<a href="tutorials/css/index.html">CSS</a></td></tr> <tr><td>»<a href="tutorials/javascript/index.html">JavaScript</a></td></tr> <tr><td>»<a href="tutorials/php/index.html">PHP</a></td></tr> <tr><td>»<a href="tutorials/asp/index.html">ASP</a></td></tr> <tr><td>»<a href="tutorials/aspnet/index.html">ASP.NET</a></td></tr> <tr><td>»<a href="tutorials/coldfusion/index.html">ColdFusion</a></td></tr> <tr><td>»<a href="tutorials/mysql/index.html">MySQL</a></td></tr> <tr><td>»<a href="tutorials/apache/index.html">Apache</a></td></tr> <tr><td>»<a href="tutorials/dhtml/index.html">DHTML</a></td></tr> <tr><td>»<a href="tutorials/ajax/index.html">AJAX</a></td></tr> <tr><td>»<a href="tutorials/xml/index.html">XML</a></td></tr> <tr><td>»<a href="tutorials/xslt/index.html">XSLT</a></td></tr> <tr><td>»<a href="tutorials/actionscript/index.html">ActionScript</a></td></tr> <tr><td>»<a href="tutorials/vbscript/index.html">VBScript</a></td></tr> <tr><td>»<a href="tutorials/vb/index.html">VB</a></td></tr> <tr><td>»<a href="tutorials/python/index.html">Python</a></td></tr> <tr><td>»<a href="tutorials/rubyonrails/index.html">Ruby On Rails</a></td></tr> </table> </div> <?php include 'config.php'; $n=$_SESSION['n']; if(isset($_POST['login'])) { $username = trim(addslashes($_POST['username'])); $password = md5(trim($_POST['password'])); $query = mysql_query("SELECT * FROM Users WHERE Username = '$username' AND Password = '$password' LIMIT 1") or die(mysql_error()); $row = mysql_fetch_array($query); // now we check if they are activated if(mysql_num_rows($query) > 0) { if($row['Activated'] > 0) { $_SESSION['s_logged_n'] = 'true'; $_SESSION['s_username'] = $username; $_SESSION['s_name'] = $row['Name']; header("Location: index.php"); } elseif ($row['Activated'] != 1) { echo ' <div class="error"><p>Sorry, you must activate your account first. Please check your email for the email. OR, you entered invalid details <a href="login.php">Try again.</a></p> <p>Didnt get your validation email? <a href="resend.php">Click here</a> to resend the validation email.</p></div> <div id="footer"> <p> <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Strict" height="25" width="70" /></a> © 2008-2009 DevPlooth.com. All rights reserved <a href="http://jigsaw.w3.org/css-validator/"> <img style="border:0;width:70px;height:25px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" /> </a> </p> </div> </body> </html> <? } else { echo ' <div class="error"> <p>You must login to view this page. Enter your username and password below and hit submit:</p> <form method="post" action="<?= $_SERVER['PHP_SELF'] ?>"> <p>Username:<br> <input name="username" type="text" Cid="username"> <p>Password:<br> <input name="password" type="password" id="password"> </p> <p> <input name="login" type="submit" id="login" value="Submit"> </p> </form> <p>Didnt get your validation email? <a href="resend.php">Click here</a> to resend the validation email.</p> <p>Need an account? <a href="register.php">Click here</a> to register, its completely free! </p></div> <div id="footer"> <p> <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Strict" height="25" width="70" /></a> © 2008-2009 DevPlooth.com. All rights reserved <a href="http://jigsaw.w3.org/css-validator/"> <img style="border:0;width:70px;height:25px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" /> </a> </p> </div> </body> </html> <? } } } mysql_close($l); ?>
  3. I added 2 }'s but still a syntax error. And I don't think it's unreadable. I can read it quite fine. Ok, I changed my code to... <?php session_start(); include 'config.php'; $n=$_SESSION['n']; if(isset($_POST['login'])) { $username = trim(addslashes($_POST['username'])); $password = md5(trim($_POST['password'])); $query = mysql_query("SELECT * FROM Users WHERE Username = '$username' AND Password = '$password' LIMIT 1") or die(mysql_error()); $row = mysql_fetch_array($query); // now we check if they are activated if(mysql_num_rows($query) > 0) { if($row['Activated'] > 0) { $_SESSION['s_logged_n'] = 'true'; $_SESSION['s_username'] = $username; $_SESSION['s_name'] = $row['Name']; header("Location: index.php"); } elseif ($row['Activated'] != 1) { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Error in login | DevPlooth.com</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="description" content="Find webmasters, web designers, SEO techs, web developers, designers PHP experts, html experts, javascript experts, css experts, SEO advice, marketing tips and resources. Our forum provides a way for people to find web help and support!" /> <meta name="keywords" content="webmaster forum, web design, web developers, developer forum, web forum, php experts, web marketing, seo experts, database experts, support forum, programming, html, css, javascript, mysql, sql, web" /> <link rel="stylesheet" href="style.css" type="text/css" /> </head> <body> <div class="body-container"> <div class="body-outer" id="body-outer"> <div class="body-header"> <div class="logo"> <a href="index.php">DevPlooth.com</a><br /> <small>Forums | Arcade | Tutorials | Web Hosting |</small> </div> <div class="tmenu"> <b><a class="add" href="index.php">Home</a></b> <? if (empty($_SESSION['n'])) { ?> <a href="register.php">Register</a> <a href="login.php">Login</a> <? }else{ ?> <a href="logout.php">Logout</a> <a href="usercp/index.php">UserCP</a> <? } ?> <a href="arcade/index.php">Arcade</a> <a href="tutorials/index.php">Tutorials</a> <a href="forums/index.php">Forums</a> <a href="proxy/index.php">Proxy</a> </div> <div class="search"> <form action="search.php" method="post" style="display:inline;"> <div> <input type="text" name="search" class="input-search" value="Enter your Search Query" onblur="if(this.value=='') this.value='Enter your Search Query';" onfocus="if(this.value=='Enter your Search Query') this.value='';" /> <input type="image" src="images/search.gif" /></div> </form> </div> </div> </div> </div> <div class="navbar"> <small>Please browse our tutorials in many languages!</small> <br /> <table id="navbar"><tr><td>»<a href="tutorials/xhtml/index.html">(X)HTML</a></td></tr> <tr><td>»<a href="tutorials/css/index.html">CSS</a></td></tr> <tr><td>»<a href="tutorials/javascript/index.html">JavaScript</a></td></tr> <tr><td>»<a href="tutorials/php/index.html">PHP</a></td></tr> <tr><td>»<a href="tutorials/asp/index.html">ASP</a></td></tr> <tr><td>»<a href="tutorials/aspnet/index.html">ASP.NET</a></td></tr> <tr><td>»<a href="tutorials/coldfusion/index.html">ColdFusion</a></td></tr> <tr><td>»<a href="tutorials/mysql/index.html">MySQL</a></td></tr> <tr><td>»<a href="tutorials/apache/index.html">Apache</a></td></tr> <tr><td>»<a href="tutorials/dhtml/index.html">DHTML</a></td></tr> <tr><td>»<a href="tutorials/ajax/index.html">AJAX</a></td></tr> <tr><td>»<a href="tutorials/xml/index.html">XML</a></td></tr> <tr><td>»<a href="tutorials/xslt/index.html">XSLT</a></td></tr> <tr><td>»<a href="tutorials/actionscript/index.html">ActionScript</a></td></tr> <tr><td>»<a href="tutorials/vbscript/index.html">VBScript</a></td></tr> <tr><td>»<a href="tutorials/vb/index.html">VB</a></td></tr> <tr><td>»<a href="tutorials/python/index.html">Python</a></td></tr> <tr><td>»<a href="tutorials/rubyonrails/index.html">Ruby On Rails</a></td></tr> </table> </div> <div class="error"><p>Sorry, you must activate your account first. Please check your email for the email. OR, you entered invalid details <a href="login.php">Try again.</a></p> <p>Didn'."'".'t get your validation email? <a href="resend.php">Click here</a> to resend the validation email.</p></div> <div id="footer"> <p> <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Strict" height="25" width="70" /></a> © 2008-2009 DevPlooth.com. All rights reserved <a href="http://jigsaw.w3.org/css-validator/"> <img style="border:0;width:70px;height:25px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" /> </a> </p> </div> </body> </html> <? } else { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Error in login | DevPlooth.com</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="description" content="Find webmasters, web designers, SEO techs, web developers, designers PHP experts, html experts, javascript experts, css experts, SEO advice, marketing tips and resources. Our forum provides a way for people to find web help and support!" /> <meta name="keywords" content="webmaster forum, web design, web developers, developer forum, web forum, php experts, web marketing, seo experts, database experts, support forum, programming, html, css, javascript, mysql, sql, web" /> <link rel="stylesheet" href="style.css" type="text/css" /> </head> <body> <div class="body-container"> <div class="body-outer" id="body-outer"> <div class="body-header"> <div class="logo"> <a href="index.php">DevPlooth.com</a><br /> <small>Forums | Arcade | Tutorials | Web Hosting |</small> </div> <div class="tmenu"> <b><a class="add" href="index.php">Home</a></b> <? if (empty($_SESSION['n'])) { ?> <a href="register.php">Register</a> <a href="login.php">Login</a> <? }else{ ?> <a href="logout.php">Logout</a> <a href="usercp/index.php">UserCP</a> <? } ?> <a href="arcade/index.php">Arcade</a> <a href="tutorials/index.php">Tutorials</a> <a href="forums/index.php">Forums</a> <a href="proxy/index.php">Proxy</a> </div> <div class="search"> <form action="search.php" method="post" style="display:inline;"> <div> <input type="text" name="search" class="input-search" value="Enter your Search Query" onblur="if(this.value=='') this.value='Enter your Search Query';" onfocus="if(this.value=='Enter your Search Query') this.value='';" /> <input type="image" src="images/search.gif" /></div> </form> </div> </div> </div> </div> <div class="navbar"> <small>Please browse our tutorials in many languages!</small> <br /> <table id="navbar"><tr><td>»<a href="tutorials/xhtml/index.html">(X)HTML</a></td></tr> <tr><td>»<a href="tutorials/css/index.html">CSS</a></td></tr> <tr><td>»<a href="tutorials/javascript/index.html">JavaScript</a></td></tr> <tr><td>»<a href="tutorials/php/index.html">PHP</a></td></tr> <tr><td>»<a href="tutorials/asp/index.html">ASP</a></td></tr> <tr><td>»<a href="tutorials/aspnet/index.html">ASP.NET</a></td></tr> <tr><td>»<a href="tutorials/coldfusion/index.html">ColdFusion</a></td></tr> <tr><td>»<a href="tutorials/mysql/index.html">MySQL</a></td></tr> <tr><td>»<a href="tutorials/apache/index.html">Apache</a></td></tr> <tr><td>»<a href="tutorials/dhtml/index.html">DHTML</a></td></tr> <tr><td>»<a href="tutorials/ajax/index.html">AJAX</a></td></tr> <tr><td>»<a href="tutorials/xml/index.html">XML</a></td></tr> <tr><td>»<a href="tutorials/xslt/index.html">XSLT</a></td></tr> <tr><td>»<a href="tutorials/actionscript/index.html">ActionScript</a></td></tr> <tr><td>»<a href="tutorials/vbscript/index.html">VBScript</a></td></tr> <tr><td>»<a href="tutorials/vb/index.html">VB</a></td></tr> <tr><td>»<a href="tutorials/python/index.html">Python</a></td></tr> <tr><td>»<a href="tutorials/rubyonrails/index.html">Ruby On Rails</a></td></tr> </table> </div> <div class="error"> <p>You must login to view this page. Enter your username and password below and hit submit:</p> <form method="post" action="<?= $_SERVER['PHP_SELF'] ?>"> <p>Username:<br> <input name="username" type="text" Cid="username"> <p>Password:<br> <input name="password" type="password" id="password"> </p> <p> <input name="login" type="submit" id="login" value="Submit"> </p> </form> <p>Didn't get your validation email? <a href="resend.php">Click here</a> to resend the validation email.</p> <p>Need an account? <a href="register.php">Click here</a> to register, it's completely free! </p></div> <div id="footer"> <p> <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Strict" height="25" width="70" /></a> © 2008-2009 DevPlooth.com. All rights reserved <a href="http://jigsaw.w3.org/css-validator/"> <img style="border:0;width:70px;height:25px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" /> </a> </p> </div> </body> </html> <? } } } mysql_close($l); ?> But now nothing shows up. www.gameyin.com/login.php
  4. No, I closed my echo. Look after </html>
  5. You could have.... <form method="post" action="ldfjasldfj.php"> <input type="submit" value="Submit1"> <input type="submit" value="Submit2" onclick="<? if(isset($_POST['Submit1']) { LET THIS GO THROUGH; } else { DONT LET THIS GO THROUGH; } ?> </form> I won't write the entire script out for you but there's a start.
  6. Probably.
  7. <script type="text/javascript"> function popup() { testwindow= window.open ("pagetogoto.html", "mywindow", "location=1,status=1,scrollbars=1,width=100,height=100"); } </script> <button onclick="javascript: poponload()"> <h1>JavaScript</h1>
  8. For the filmstrip, vertical-align: middle, places it in the middle of the parent element. That's probably why it isn't working.
  9. If I understand you correctly, IE's child element of the cell in the table, is getting an extra 10px. And also if you use 2 ids with the same name on the same page, it will be invalid. I wouldn't suggest using tables as layout. You are the subject of inheritance.
  10. What do you mean haku??
  11. Hmm, you are right. So you think I just need to add 2 }'s to the end of my code?
  12. Trying to "high-tech" my error messages. Look now... Here's whole code for login.php <?php session_start(); include 'config.php'; $n=$_SESSION['n']; if(isset($_POST['login'])) { $username = trim(addslashes($_POST['username'])); $password = md5(trim($_POST['password'])); $query = mysql_query("SELECT * FROM Users WHERE Username = '$username' AND Password = '$password' LIMIT 1") or die(mysql_error()); $row = mysql_fetch_array($query); // now we check if they are activated if(mysql_num_rows($query) > 0) { if($row['Activated'] > 0) { $_SESSION['s_logged_n'] = 'true'; $_SESSION['s_username'] = $username; $_SESSION['s_name'] = $row['Name']; header("Location: index.php"); } elseif ($row['Activated'] != 1) { echo ' <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Error in login | DevPlooth.com</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="description" content="Find webmasters, web designers, SEO techs, web developers, designers PHP experts, html experts, javascript experts, css experts, SEO advice, marketing tips and resources. Our forum provides a way for people to find web help and support!" /> <meta name="keywords" content="webmaster forum, web design, web developers, developer forum, web forum, php experts, web marketing, seo experts, database experts, support forum, programming, html, css, javascript, mysql, sql, web" /> <link rel="stylesheet" href="style.css" type="text/css" /> </head> <body> <div class="body-container"> <div class="body-outer" id="body-outer"> <div class="body-header"> <div class="logo"> <a href="#">DevPlooth.com</a><br /> <small>Forums | Arcade | Tutorials | Web Hosting |</small> </div> <div class="tmenu"> <b><a class="add" href="index.php">Home</a></b> <? if (empty($_SESSION['n'])) { ?> <a href="register.php">Register</a> <a href="login.php">Login</a> <? }else{ ?> <a href="logout.php">Logout</a> <a href="usercp/index.php">UserCP</a> <? } ?> <a href="arcade/index.php">Arcade</a> <a href="tutorials/index.php">Tutorials</a> <a href="forums/index.php">Forums</a> <a href="proxy/index.php">Proxy</a> </div> <div class="search"> <form action="search.php" method="post" style="display:inline;"> <div> <input type="text" name="search" class="input-search" value="Enter your Search Query" onblur="if(this.value=='') this.value='Enter your Search Query';" onfocus="if(this.value=='Enter your Search Query') this.value='';" /> <input type="image" src="images/search.gif" /></div> </form> </div> </div> </div> </div> <div class="navbar"> <small>Please browse our tutorials in many languages!</small> <br /> <table id="navbar"><tr><td>»<a href="tutorials/xhtml/index.html">(X)HTML</a></td></tr> <tr><td>»<a href="tutorials/css/index.html">CSS</a></td></tr> <tr><td>»<a href="tutorials/javascript/index.html">JavaScript</a></td></tr> <tr><td>»<a href="tutorials/php/index.html">PHP</a></td></tr> <tr><td>»<a href="tutorials/asp/index.html">ASP</a></td></tr> <tr><td>»<a href="tutorials/aspnet/index.html">ASP.NET</a></td></tr> <tr><td>»<a href="tutorials/coldfusion/index.html">ColdFusion</a></td></tr> <tr><td>»<a href="tutorials/mysql/index.html">MySQL</a></td></tr> <tr><td>»<a href="tutorials/apache/index.html">Apache</a></td></tr> <tr><td>»<a href="tutorials/dhtml/index.html">DHTML</a></td></tr> <tr><td>»<a href="tutorials/ajax/index.html">AJAX</a></td></tr> <tr><td>»<a href="tutorials/xml/index.html">XML</a></td></tr> <tr><td>»<a href="tutorials/xslt/index.html">XSLT</a></td></tr> <tr><td>»<a href="tutorials/actionscript/index.html">ActionScript</a></td></tr> <tr><td>»<a href="tutorials/vbscript/index.html">VBScript</a></td></tr> <tr><td>»<a href="tutorials/vb/index.html">VB</a></td></tr> <tr><td>»<a href="tutorials/python/index.html">Python</a></td></tr> <tr><td>»<a href="tutorials/rubyonrails/index.html">Ruby On Rails</a></td></tr> </table> </div> <div class="error"><p>Sorry, you must activate your account first. Please check your email for the email. OR, you entered invalid details <a href="login.php">Try again.</a></p> <p>Didn'."'".'t get your validation email? <a href="resend.php">Click here</a> to resend the validation email.</p></div> <div id="footer"> <p> <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Strict" height="25" width="70" /></a> © 2008-2009 DevPlooth.com. All rights reserved <a href="http://jigsaw.w3.org/css-validator/"> <img style="border:0;width:70px;height:25px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" /> </a> </p> </div> </body> </html> '; } else { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Error in login | DevPlooth.com</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="description" content="Find webmasters, web designers, SEO techs, web developers, designers PHP experts, html experts, javascript experts, css experts, SEO advice, marketing tips and resources. Our forum provides a way for people to find web help and support!" /> <meta name="keywords" content="webmaster forum, web design, web developers, developer forum, web forum, php experts, web marketing, seo experts, database experts, support forum, programming, html, css, javascript, mysql, sql, web" /> <link rel="stylesheet" href="style.css" type="text/css" /> </head> <body> <div class="body-container"> <div class="body-outer" id="body-outer"> <div class="body-header"> <div class="logo"> <a href="#">DevPlooth.com</a><br /> <small>Forums | Arcade | Tutorials | Web Hosting |</small> </div> <div class="tmenu"> <b><a class="add" href="index.php">Home</a></b> <? if (empty($_SESSION['n'])) { ?> <a href="register.php">Register</a> <a href="login.php">Login</a> <? }else{ ?> <a href="logout.php">Logout</a> <a href="usercp/index.php">UserCP</a> <? } ?> <a href="arcade/index.php">Arcade</a> <a href="tutorials/index.php">Tutorials</a> <a href="forums/index.php">Forums</a> <a href="proxy/index.php">Proxy</a> </div> <div class="search"> <form action="search.php" method="post" style="display:inline;"> <div> <input type="text" name="search" class="input-search" value="Enter your Search Query" onblur="if(this.value=='') this.value='Enter your Search Query';" onfocus="if(this.value=='Enter your Search Query') this.value='';" /> <input type="image" src="images/search.gif" /></div> </form> </div> </div> </div> </div> <div class="navbar"> <small>Please browse our tutorials in many languages!</small> <br /> <table id="navbar"><tr><td>»<a href="tutorials/xhtml/index.html">(X)HTML</a></td></tr> <tr><td>»<a href="tutorials/css/index.html">CSS</a></td></tr> <tr><td>»<a href="tutorials/javascript/index.html">JavaScript</a></td></tr> <tr><td>»<a href="tutorials/php/index.html">PHP</a></td></tr> <tr><td>»<a href="tutorials/asp/index.html">ASP</a></td></tr> <tr><td>»<a href="tutorials/aspnet/index.html">ASP.NET</a></td></tr> <tr><td>»<a href="tutorials/coldfusion/index.html">ColdFusion</a></td></tr> <tr><td>»<a href="tutorials/mysql/index.html">MySQL</a></td></tr> <tr><td>»<a href="tutorials/apache/index.html">Apache</a></td></tr> <tr><td>»<a href="tutorials/dhtml/index.html">DHTML</a></td></tr> <tr><td>»<a href="tutorials/ajax/index.html">AJAX</a></td></tr> <tr><td>»<a href="tutorials/xml/index.html">XML</a></td></tr> <tr><td>»<a href="tutorials/xslt/index.html">XSLT</a></td></tr> <tr><td>»<a href="tutorials/actionscript/index.html">ActionScript</a></td></tr> <tr><td>»<a href="tutorials/vbscript/index.html">VBScript</a></td></tr> <tr><td>»<a href="tutorials/vb/index.html">VB</a></td></tr> <tr><td>»<a href="tutorials/python/index.html">Python</a></td></tr> <tr><td>»<a href="tutorials/rubyonrails/index.html">Ruby On Rails</a></td></tr> </table> </div> <div class="error"> <p>You must login to view this page. Enter your username and password below and hit submit:</p> <form method="post" action="<?= $_SERVER['PHP_SELF'] ?>"> <p>Username:<br> <input name="username" type="text" Cid="username"> <p>Password:<br> <input name="password" type="password" id="password"> </p> <p> <input name="login" type="submit" id="login" value="Submit"> </p> </form> <p>Didn't get your validation email? <a href="resend.php">Click here</a> to resend the validation email.</p> <p>Need an account? <a href="register.php">Click here</a> to register, it's completely free! </p></div> <div id="footer"> <p> <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Strict" height="25" width="70" /></a> © 2008-2009 DevPlooth.com. All rights reserved <a href="http://jigsaw.w3.org/css-validator/"> <img style="border:0;width:70px;height:25px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" /> </a> </p> </div> </body> </html> <? } mysql_close($l); ?>
  13. www.gameyin.com/login.php Here's the error section. <? } mysql_close($l); ?> It worked btw, opening the tags.
  14. The BLAH BLAH MORE CODING STUFF is just code from the rest of the website, no php there...I provided the actual code. AH didn't notice I didn't reopen it. When I get home, I'll try it.
  15. What's your account on Starcraft?
  16. <a href="news.php" onmouseover="alert("Alert");>News</a> o it's not a popup. You can do onmouseover, then document.write something...
  17. Ok I have a login script. I have a syntax error. Once fixed we will be moving onto displaying certain links if they are signed on. I have taken advice and moved to sessions. Here is the website www.gameyin.com/index.php Here is the code relating to it. In index.php. <?php session_start(); $n=$_SESSION['n']; ?> BLAH BLAH MORE CODING STUFF <b><a class="add" href="index.php">Home</a></b> if (empty($_SESSION['n'])) { ?> <a href="register.php">Register</a> <a href="login.php">Login</a> <? }else{ ?> <a href="logout.php">Logout</a> <a href="usercp/index.php">UserCP</a> <? } ?> The }else{ is line 26. Also, I want register/login to display if not signed on, vice versa for logout/usercp. Help?
  18. I play regular SC, broodwar* and I think it's amazing. I do UMS. NFL BLITZ I LOVE THAT GAME ;D
  19. Why are you using \""? Try this <img src=\".$cs_tagok_foto\" alt=\"\" height=\"100\" />
  20. No problem dude. That's what we are here for
  21. You never ended the first <tr> I will bold the part you must add. <form id="cin" name="cin" method="post" action=""> <table><tr> <th>Your Name</th> <td><input type="text" name="your_name" /></td>[b]</tr>[/b] <tr><td></td></tr> [i]<tr>[/i]<th>Card No.</th> <td><input type="text" name="card_no" id="card_no" /></td>[i]</tr>[/i] </form> Also, after you have <th>Card no</th>...blah blah blah You never have that in a row. So the italicized part is the part you must add to make it into a new row. Modify if I got it wrong. You aren't coding the tables properly
  22. dont be jealous.
  23. I forget now, I fixed it www.gameyin.com/register.php Working on stylesheet now for it..
  24. Eh didn't work ;o.
×
×
  • 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.