Registration Script

Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 49
  1. #16
    Account Upgraded | Title Enabled! borkaman is offline
    MemberRank
    Apr 2007 Join Date
    404Posts

    Re: Registration Script

    can anyone tell me please witch program to use to set up a Register page?

  2. #17
    <?="Hello World.";?> wutyes is offline
    MemberRank
    Feb 2008 Join Date
    251Posts

    Re: Registration Script

    Quote Originally Posted by ctby23 View Post
    Maybe you should try your work! ^_^

    i put that under ur script but i have an error:

    Parse error: syntax error, unexpected '}' in C:\wamp\www\done.php on line 73
    Copy it again, when I was editing it for here I forgot to delete a }. Now it will work.


    borkaman, you can use notepad..

  3. #18
    Account Upgraded | Title Enabled! borkaman is offline
    MemberRank
    Apr 2007 Join Date
    404Posts

    Re: Registration Script

    no i ment witch program to use to set up the webpage files..

  4. #19
    Pilipinas FLYFF Editor ctby23 is offline
    MemberRank
    Jun 2009 Join Date
    In your orgasm.Location
    244Posts

    Re: Registration Script

    PHP Code:
    <?php
    /* Copyright 2009 GamingSync & Aaron Roderigues */
    $link = @mssql_connect("MY Host IP""USERNAME""PASSWORD") or die ("Server is down!");
    $db = @mssql_select_db('ACCOUNT_DBF') or die ("Accout table is missing!");
    function 
    doesUsernameExist($name){
        
    $exit FALSE;
        
    $result = @mssql_query("SELECT * FROM Accounttable.. WHERE account='$name'");
        if(
    mssql_num_rows($result) != 0){
            
    $exit TRUE;
        }
        else{
            
    $exit FALSE;
        }
        return 
    $exit;
    }
    if(!isset(
    $_POST['submit'])){
        print(
    "");
    }
    else if(isset(
    $_POST['submit'])){
        
    $userRev preg_replace ("[^A-Za-z0-9]"""$_POST['username']);
        
    $passRev preg_replace ("[^A-Za-z0-9]"""$_POST['password']);
        
    $day = (int) $_POST['day'];
        
    $month = (int) $_POST['month'];
        
    $year = (int) $_POST['year'];
        
    $email $_POST['email'];
        if(
    $_POST['username'] == ""){
            print(
    "Please enter an username");
        }
        else if(
    $_POST['email'] == ""){
            print(
    "Please enter an email");
        }
        else if(
    $_POST['password'] == ""){
            print(
    "Please enter an password");
        }
        else if(
    $day == "" || $month == "" || $year == "" || strlen($day) > || strlen($month) > || strlen($year) != || $day == 00 || $month == 00 || $year == 0000){
            print(
    "Please enter a correct birthday");
        }
        else if(
    strlen($_POST['username']) > 15){
            print(
    "Your username cannot contain more than 15 characters");
        }
        else if(
    strlen($_POST['password']) > 36){
            print(
    "Your password cannot contain more than 36 characters");
        }
        else if(
    $_POST['username'] != $userRev){
            print(
    "Your username contains illegal characters or words");
        }
        else if(
    $_POST['password'] != $passRev){
            print(
    "Your password contains illegal characters");
        }
        else if(
    strlen(filter_var($emailFILTER_VALIDATE_EMAIL)) == 0){ 
            print(
    "Your is email is wrong please check it");
        }
        else {
            
    $userRev strtolower($userRev);
            
    $passRev strtolower($passRev);
            
    $bday $month.'/'.$day.'/'.$year;
            
    $email $_POST['email'];
            if(!
    doesUsernameExist($userRev)){
                
    $stmt mssql_init('HEREBEINT'$link);
                
    mssql_bind($stmt'@account'$userRevSQLVARCHARfalsefalse15);
                
    mssql_bind($stmt'@password'$passRevSQLVARCHARfalsefalse36);
                
    mssql_bind($stmt'@birthday'$bdaySQLVARCHARfalsefalse120);
                
    mssql_bind($stmt'@email'$emailSQLVARCHARfalsefalse120);
                
    mssql_execute($stmt) or die ("Something is wrong on the execution");
                
    mssql_free_statement($stmt);
                print(
    "<font color='black'>Thank you for registering with the name \"".$userRev."\".</font>");
            }
            else {
                print(
    "Username is already taken");
            }
        }


    function print(
    $error){
        if(
    $error != ""){
            echo 
    $error;
        }
        
    form code here
    }  

    ?>
    IS this correct?? Because I got this error:

    Parse error: syntax error, unexpected T_PRINT, expecting T_STRING in C:\wamp\www\done.php on line 74


    I delte the all words Sign in printSign.. can u edit this to make it work? tnx 4 helping me!
    Last edited by ctby23; 24-10-09 at 11:22 PM.

  5. #20
    <?="Hello World.";?> wutyes is offline
    MemberRank
    Feb 2008 Join Date
    251Posts

    Re: Registration Script

    PHP Code:
                print("Username is already taken");
            }
        }
    [
    add]}[/add]

    func 

  6. #21
    Valued Member damian9000z is offline
    MemberRank
    Dec 2008 Join Date
    118Posts

    Re: Registration Script

    Parse error: syntax error, unexpected T_PRINT, expecting T_STRING in C:\wamp\www\done.php on line 74
    If you get Notepad++ you can see line 74 and see the error.

  7. #22
    <?="Hello World.";?> wutyes is offline
    MemberRank
    Feb 2008 Join Date
    251Posts

    Re: Registration Script

    Above, I can see the error with my eyes. why are you using Print?

  8. #23
    Valued Member CinuSeK is offline
    MemberRank
    Feb 2009 Join Date
    122Posts

    Re: Registration Script

    See: catmanx3.webd.pl/flyfc/index2.php

    Its yours script. Nothing appear. WTF?! ;/

  9. #24
    <?="Hello World.";?> wutyes is offline
    MemberRank
    Feb 2008 Join Date
    251Posts

    Re: Registration Script

    Ok and did you just c&p? Because if you did then thats your problem...

  10. #25
    Valued Member CinuSeK is offline
    MemberRank
    Feb 2009 Join Date
    122Posts

    Re: Registration Script

    No, i have changed host etc., added "}"..

    Maybe u can create one in php/html and upload it? You can create file like "config.php" and do an include. Its easier to read then.

  11. #26
    Apprentice Novaton is offline
    MemberRank
    Oct 2008 Join Date
    11Posts

    Re: Registration Script

    hey, i got everything fine, its just its blank, theres not forms of submit button

  12. #27
    Retired (Goddamn idiots) DragonLord is offline
    MemberRank
    Dec 2003 Join Date
    /dev/urandomLocation
    554Posts

    Re: Registration Script

    This is about the simplest of php snippets there are, yet so many leechers here are suffering from down syndrome.
    The errors are self explanatory, the functions are purely logic.
    What's so hard to understand?

    zyberscape, you should put a minimal IQ requirement on such basic snippets to fend off imbeciles.

  13. #28
    0xC0FFEE spikensbror is offline
    MemberRank
    Dec 2006 Join Date
    SwedenLocation
    1,855Posts

    Re: Registration Script

    This isn't even close to perfect.

  14. #29
    <?="Hello World.";?> wutyes is offline
    MemberRank
    Feb 2008 Join Date
    251Posts

    Re: Registration Script

    Expand on what is wrong with it, and no-one said it was perfect.

  15. #30
    Apprentice Novaton is offline
    MemberRank
    Oct 2008 Join Date
    11Posts

    Re: Registration Script

    It hasn't come up with any errors, it just shows my registration page with nothing on it? thirdflyff.servegame.com



Page 2 of 4 FirstFirst 1234 LastLast

Advertisement