LearningCoder Posted May 27, 2013 Posted May 27, 2013 (edited) <title>Gangsters-Sanctuary</title> <script src="http://code.jquery.com/jquery-latest.js"></script> <link href="newindexcss.css" rel="stylesheet" type="text/css"> <style> div.register { top:0px; left:0px; right:0px; margin-right: auto; margin-left: auto; width:300px-;padding:3px 3px 3px 3px; background: rgba(05,05,05,0.5); border:2px solid #333333; box-shadow:0px 0px 8px #000000; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; color:#ffffff; font-family:Impact; font-size:22px; cursor: pointer; text-shadow: 0px 0px 6px #000000; } div.register:hover { top:0px; left:0px; right:0px; margin-right: auto; margin-left: auto; width:300px-;padding:3px 3px 3px 3px; background: rgba(05,05,05,0.5); border:2px solid #333333; box-shadow:0px 0px 8px #000000; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; color: #133f63; font-family:Impact; font-size:22px; cursor: pointer; text-shadow: 0px 0px 6px #000000; } body { background-color:#222222; background-repeat:no-repeat; background-size:cover; background-position: center; } ( div.Infomation { top:0px; left:0px; right:0px; margin-right: auto; margin-left: auto; width:520px-;padding:10px 7px 10px 7px; background: rgba(05,05,05,0.5); -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; font-size:15px; font-family:Arial; color:#ffffff; border:2px solid #333333; box-shadow:0px 0px 8px #000000; } div.login-box { top:0px; left:0px; right:0px; margin-right: auto; margin-left: auto; width:300px;padding:10px 7px 10px 7px; background: rgba(05,05,05,0.5); border:1px solid #565656; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; font-family:Arial; color:#ffffff; border:2px solid #333333; box-shadow:0px 0px 8px #000000; } div.message { top:0px; left:0px; right:0px; margin-right: auto; margin-left: auto; width:820px;padding:10px 7px 10px 7px; background: rgba(05,05,05,0.5); border:2px solid #333333; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; font-family:Arial; color:#ffffff; box-shadow:0px 0px 8px #000000; } .box { background-color:#222222; border:2px solid #333333; height:38px; width:192px; color:#787878; padding:3px; border-radius:4px; font-size:18px; background: rgba(05,05,05,0.5); box-shadow:0px 0px 8px #000000; } .box-sub { background-color:#222222; border:1px solid #000000; height:38px; width:92px; color:#787878; padding:3px; border-radius:4px; font-size:15px; box-shadow: 0px 0px 6px #000000; } .box-sub:hover { background-color:#222222; border:1px solid #000000; height:38px; width:92px; color:#ffffff; padding:3px; border-radius:4px; font-size:15px; box-shadow: 0px 0px 6px #000000; } </style> <script> $(function(){ $('#inlog').click(function(){ if ($("#login:first").is(":hidden")) { $("#login").slideDown("slow"); } else { $('#login').slideUp('medium'); } }); $('#inreg').click(function(){ if ($("#register:first").is(":hidden")) { $("#register").slideDown("slow"); } else { $('#register').slideUp('medium'); } }); </script> </head> <body> <br> <tr> <td colspan="2"><center><img src="gsbanner.png" width="650"></center></td> </tr> <table width="400px" align="center"> <tr> <td width="200px;"><a href="index.php"</a><div class="buttons" align="center" id="inlog">Index</div></td> <td width="200px;"><a href="register.php"</a><div class="buttons" align="center" id="inreg">Register</div></td> </tr> <tr><td colspan="3"> <div class="boxes" id="login"> <table width="100%"> <tr> <td> <p align="center" class="style8"><span class="style30"><font color=red><b><center></center><b></font><font color=white><b><center></center><b></font></span><br> <form method="POST"> <td align="center"><span style="font-size:16px;color:#ffffff;">Username : </span><br> <input name="username" type="text" id="username"><br> <span style="font-size:16px;color:#ffffff;">Password : </span><br> <input name="password" type="password" id="password"><br> <input type="submit" name="Submit" class="button" value="Login" style="width:100px;"> </form> </td> </tr> <tr><td colspan="3"> <div class="boxes" id="infomation"> <font color=white>Come and play <b>gangsters-sanctuary.co.uk</b> for free! We have special features such as XP&Kill comp's running everyday. Achievements, a one of a kind layout aswell! So what are you waiting for!</font> </div> </td></tr> <tr><td colspan="3" align="right" style="font-size:10px;color:#ffffff;font-family:arial;"><font color=white>© 2013 - 2013 is a registered trademark of The KB Project. All rights reserved.</font> </td></tr> </table> </table> <br> </form> </body> </html> <? } ?> I need the above code to be converted into a register... So i want the same style as above but as a register page... If anyone can help then please message me. Edited May 28, 2013 by illusions please add code tags Quote
Dave Posted June 10, 2013 Posted June 10, 2013 (edited) All you really need to do is point your login form towards authenticate.php and make sure that the field names are correct. In McCodes case it uses username and password as the input names. So all you really need to do is change your <form> tag to include action="authenticate.php" like the following: <form action="authenticate.php" method="post"> Check out this if you want to understand more http://www.w3schools.com/php/php_forms.asp Edited June 10, 2013 by Dave Macaulay Quote
Guest Posted June 10, 2013 Posted June 10, 2013 All you really need to do is point your login form towards authenticate.php and make sure that the field names are correct. In McCodes case it uses username and password as the input names. So all you really need to do is change your <form> tag to include action="authenticate.php" like the following: <form action="authenticiate.php" method="post"> Check out this if you want to understand more http://www.w3schools.com/php/php_forms.asp authenticate.php :) Quote
Dave Posted June 10, 2013 Posted June 10, 2013 authenticate.php :) I've never been able to spell that word. Thanks :) Post updated Quote
Guest Posted June 10, 2013 Posted June 10, 2013 anyone know he have mccode or not ? Why is that relevant? Quote
Dave Posted June 10, 2013 Posted June 10, 2013 anyone know he have mccode or not ? Why is that relevant? This is in the PHP board so it might be for another script, I just presumed. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.