here is the code
Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Account Registration</title>
<script type="text/javascript" src="./inc/md5.js"></script>
</head>
<body bgcolor="#000000" text="#FFFFFF">
<DIV align="center"><b class="h2">
ATTENTION: Please use only letters in the Account ID feild! </b><br />
<br />
<form method='post' action='register2.php'>
<TABLE width="312">
<TBODY>
<TR>
<TD id=GoodStuff style="PADDING-LEFT: 0px; MARGIN-LEFT: 0px">
<DIV id=theform style="PADDING-LEFT: 0px">
<TABLE class=body width="306" height="229">
<TBODY>
<TR>
<TD align="center" height="32"><b>Full Name:</b></TD>
<TD class=it3 height="32">
<INPUT class=it style="FONT-SIZE: 9pt; font-weight:700" name="name1" id="name1"><b>
</b> </TR>
<TR>
<TD align="center" height="32"><b>Account PIN:</b></TD>
<TD class=it3 height="32">
<INPUT class=it style="FONT-SIZE: 9pt; font-weight:700" name="pin" id="pin"><b>
</b> </TR>
<TR>
<TD align="center" height="32"><b>Account ID:</b></TD>
<TD class=it3 height="32">
<INPUT class=it style="FONT-SIZE: 9pt; font-weight:700" name="id" id="id"><b>
</b> </TR>
<TR>
<TD align="center" height="37"><b>Password:</b></TD>
<TD class=it3 height="37">
<INPUT class=it id="ipassword" style="FONT-SIZE: 9pt; font-weight:700" type=password maxLength=12 name=pass></TD>
</TR>
<TR>
<TD align="center" height="32"><b>Retype Password:</b></TD>
<TD class=it3 height="32">
<input class=it1 id="ipassword" style="FONT-SIZE: 9pt; font-weight:700" type=password maxlength=12 name=retpass></TD>
</TR>
<tr>
<TD class=Label align="center" height="32">
<p align="center"><b>Email:</b></TD>
<TD class=it3 height="32">
<input class=it id="email" style="FONT-SIZE: 9pt; font-weight:700" type=email maxlength=24 name=email></TD>
</tr>
<form enctype="multipart/form-data" action="register2.php" method="POST">
<input type="hidden" name="aid" value="3331129">
Name Character:<br><input type="text" name="name"><br /><br>
Proffession: <br>
<input type="radio" name="profession" value="10">Mage</input>
<img src="http://www.elitepvpers.com/forum/images/female.png" class="png" alt="" />
<input type="radio" name="profession" value="20">Warrior</input>
<img src="http://www.elitepvpers.com/forum/images/male.png" class="png" alt="" />
<br><br><br>
Gender: <br>
<input type="radio" name="look" value="100001">Male</input>
<img src="http://www.elitepvpers.com/forum/images/male.png" class="png" alt="" />
<input type="radio" name="look" value="40002">Female</input>
<img src="http://www.elitepvpers.com/forum/images/female.png" class="png" alt="" />
<br><br>
<TR>
<TD> </TD>
<TD style="FONT-SIZE: 9px; VERTICAL-ALIGN: middle">
<span style="font-size: 7pt">
<input type="hidden" name="hash" style="font-weight: 700">
<p align="center">
<input class=Butt type=submit onclick="hash.value = login(pass.value)" value='Create ' name=B1 style="float: left; font-weight: 700"></span></TD>
</TR></TBODY></TABLE>
</DIV></TD></TR></TBODY></TABLE></FORM>
</DIV>
</body>
</html>
and here is a basic register page ( B1 )
Code:
<?php
if($_POST['B1'])
{
mysql_select_db($mydbacc);
$userid = trim($_POST['id']);
$password=trim($_POST['pass']);
$passretype=trim($_POST['retpass']);
$hash=$_POST['hash'];
if($password != $passretype) {
echo "Password not equal to Retyped Password.";
}else{
if(!ereg("^[0-9a-zA-Z]{4,12}$",$password))
{
echo "Only letters or numbers, length of 4 to 12 characters";
}
else
{
$res = mysql_query("select * from account where name = '".$userid."' order by id desc");
if(mysql_num_rows($res) == 0)
{
mysql_query("insert into account (name,Password,Reg_date) values ('".$userid."','".$hash."','".date("y-m-d H:i:s", time())."')");
echo "Account registered successfully.";
}
else
{
echo "Account Already exists in database.";
}
}
}
}
?>
you still need register2 and the images or create your own based on above example
i only provide you the source code from
view-source:
Greetings From PowerChaos