Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Archlord
You last visited: Today at 18:35

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Simple Register page [private servers]

Discussion on Simple Register page [private servers] within the Archlord forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2009
Posts: 51
Received Thanks: 4
Simple Register page [private servers]

Few people ask me for registration files. Here is one very simple code:

PHP Code:
<?php
$db_username 
"alef";
$db_password "password";
$db "oci:dbname=account";
$conn = new PDO($db,$db_username,$db_password);
?><center>
<form id="reg" name="reg" method="post" action=""> 
<font color="white">Username</font><br />
<input name="user" type="text" class="txt" id="path" size="30"
<br /><br />
<font color="white">password</font><br />
<input name="pass" type="password" class="txt" id="author" size="30" />
<br />
<input name="submit" type="submit" class="btn" id="button" value="Register" /></center>
</form>
<?php 

if($_POST['submit']){
    
$date date("d.m.Y");
    
$user = isset($_POST['user']) ? $_POST['user'] : false;
    
$pass = isset($_POST['pass']) ? $_POST['pass'] : false;
    if(
$user && $pass){
        
$stmt $conn->exec("INSERT INTO AMT_ACCOUNT (ACCOUNTID,PASSWORD) VALUES ('$user','$pass')");
        
$stmt2 $conn->exec("INSERT INTO AMT_MASTER (ACCOUNTID,EMAIL,SOCIALNO,CREATION_DATE,LAST_DATE,MODIFY_DATE,PHONE,MOBILE,ZIPCODE,ADDR1,ADDR2,SMS_YN,EMAIL_YN,PENALTY_GBN,PAUSE_DATE,IP,LOGINCNT,NOMINATOR,RPG_LEVEL,LONEY_AGREEYN,LONEY_CHARGEYN,SEX) VALUES ('$user', '', '14124123', TO_DATE('20130512143514', 'YYYYMMDDHH24MISS'), TO_DATE('20130512143520', 'YYYYMMDDHH24MISS'), TO_DATE('20130512143523', 'YYYYMMDDHH24MISS'), '141231', '123124124', '123123', '123', '123', '1', '1', '12', TO_DATE('20130512143543', 'YYYYMMDDHH24MISS'), '12', '123', '12', '12', '1', '1', '1')");
        if(
$stmt && $stmt2){//22
            
echo "<script type=\"text/javascript\"> 
                alert('Registration successful! You can play now!'); 
            </script>"
;
        }else{
            echo 
"<script type=\"text/javascript\">
                alert('Error: ');
            </script>"
;
            
print_r($conn->errorInfo());
        }
    }else{
        echo 
"<script type=\"text/javascript\"> 
                alert('Empty field!'); 
            </script>"
;
    }
}
?>
teryto is offline  
Reply


Similar Threads Similar Threads
[Design]a simple Register.html page
01/10/2013 - SRO Private Server - 2 Replies
a simple page that anyone can do it but this is my first project i know that with training you would be professional but i don't mean like ... iam kraal no one better than me , no just wanna share it with ya guys Screenshot http://easycaptures.com/fs/uploaded/510/436196975 8.png i hope it likes you
[WTS]BOI-Register Page (for private servers)
08/29/2012 - Battle of the Immortals - 1 Replies
BOI-Register Page (for private servers) What you pay for: Register page with addons What you get: Complete register page with addons, configuration, DB modification (if needed)



All times are GMT +2. The time now is 18:35.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.