Jump to content
MakeWebGames

Recommended Posts

Posted (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 by illusions
please add code tags
  • 2 weeks later...
Posted (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 by Dave Macaulay
Posted
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 :)

Posted
anyone know he have mccode or not ?

Why is that relevant?

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...