Simple Registration Page

Page 1 of 4 1234 LastLast
Results 1 to 25 of 81
  1. #1
    Gamma SkylineMaster is offline
    MemberRank
    Nov 2004 Join Date
    CubaLocation
    3,008Posts

    Simple Registration Page

    This is a Simple registration page, i got the code from an old webpage package, and made this simple Page for servers that only want registration for their people.

    How to install


    1. Download a webserver: AppServ
    2. Extract Web files in C:/AppServ/www/
    3. Edit config.php to this:

      $alogin = 'sa'; SQL Username
      $apass = 'pw'; SQL Password
      $ip = "Local IP";
      $host = "Local IP";
    4. Editing php.ini

      Click Start, go to Run, and type C:/Windows/php.ini
    5. Now search this line ;extension_mssql using CTRL+F and remove the ;
    6. Opening Registration Page http://LocalIP/Register/reguser.php


    DONE. :)

    Added new Black Theme, If anyone want a theme for their simple registration page post here how u want it colors and stuff, look at the pic below.
    Attached Thumbnails Attached Thumbnails blacktheme.jpg  
    Attached Files Attached Files
    Last edited by SkylineMaster; 10-10-05 at 05:31 AM.


  2. #2
    Enthusiast HackingSkills is offline
    MemberRank
    Apr 2005 Join Date
    43Posts
    i have used this simple registration but added a little more string manipulation for the idreg.php

    this would actually filter the input with minimum of 4 characters. not to mention it will check for valid email format.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <!-- saved from url=(0032)http://localhost/news//index.php -->
    <?php require 'config.php'; ?>
    <?php require 'injectprotect.php'; ?>
    <HTML><HEAD><TITLE><?php print $title; ?></TITLE>
    <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"><LINK
    href="css.css" type=text/css rel=stylesheet>
    <SCRIPT language=JavaScript src="jsfunc.js"
    type=text/javascript></SCRIPT>
    <META content="MSHTML 6.00.2800.1400" name=GENERATOR>
    <style type="text/css">
    <!--
    .style1 {font-size: 10**
    -->
    </style>
    </HEAD>
    </TR></TBODY></TABLE>
    <TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
    <TBODY>
    <TR>
    </table>
    <table width="100%" height="5%" border="0.5">
    <tr>
    </tr>
    <tr>
    <th scope="col"><h6> <?php
    $Error = 0;
    $login = stripslashes($_POST['login']);
    $name = stripslashes($_POST['name']);
    $email = stripslashes($_POST['email']);
    $idnumb = stripslashes($_POST['idnumb']);
    $pw = stripslashes($_POST['pw']);
    $cpw = stripslashes($_POST['cpw']);
    $sques = stripslashes($_POST['squest']);
    $sansw = stripslashes($_POST['sansw']);
    $extcode = stripslashes($_POST['extcode']);
    $extcode1 = stripslashes($_POST['code']);
    $sql_email_check = mssql_query("SELECT mail_addr FROM MEMB_INFO WHERE mail_addr='$email'");
    $sql_username_check = mssql_query("SELECT memb___id FROM MEMB_INFO WHERE memb___id='$login'");
    $email_check = mssql_num_rows($sql_email_check);
    $username_check = mssql_num_rows($sql_username_check);

    //if (($email_check > 0) || ($username_check > 0) || empty($login) || empty($name) || empty($email) || empty($idnumb) || empty($pw) || empty($cpw) || empty($sques) || empty($sansw) || empty($extcode) || empty($extcode1))
    //{
    // echo "Error: <br />";
    //**



    if (empty($login) || empty($name) || empty($email) || empty($idnumb) || empty($pw) || empty($cpw) || empty($sques) || empty($sansw) || empty($extcode) || empty($extcode1))
    {
    echo "Some Fields were left blank. Please go back and try again.<br />";
    $Error=1; **

    if ($username_check > 0)
    {
    echo "'$login' has already been used by another member
    in our database. Please choose a different Username.<br />";
    $Error=1; **

    if (trim($login)=='' || strlen(trim($login)) < 4)
    {
    echo "Please enter a login with at least 4 characters long.<br />";
    $Error=1; **

    if (trim($name)=='' || strlen(trim($name)) < 4)
    {
    echo "Please enter a name with at least 4 characters long.<br />";
    $Error=1; **

    if ($pw != $cpw)
    {
    echo "<br />The passwords you entered do not match.<br />";
    $Error=1; **

    if (trim($pw)=='' || strlen(trim($pw)) < 4)
    {
    echo "Please enter a password at least 4 characters long.<br />";
    $Error=1; **

    if(!ereg("[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]", $email))
    {
    echo "Please enter a valid email address.<br />"; **

    if ($extcode != $extcode1)
    {
    echo "Auto-registration protected. You must type the exact code.<br />"; $Error=1; **


    if ($Error == 0)
    {
    $msquery2 = "SET IDENTITY_INSERT MEMB_INFO ON";
    $msquery3 = "INSERT INTO MEMB_INFO (memb_guid,memb___id,memb__pwd,memb_name,sno__numb,post_code,addr_info,addr_deta,tel__numb,mail_addr,phon_numb,fpas_ques,fpas_answ,job__code,appl_days,modi_days,out__days,true_days,mail_chek,bloc_code,ctl1_code) VALUES ('1','$login','$pw','$name', '1','1234','11111','$idnumb','12343','$email','$email','$sques','$sansw','1','2003-11-23','2003-11-23','2003-11-23','2003-11-23','1','0','1')";
    $msquery4 = "INSERT INTO VI_CURR_INFO (ends_days,chek_code,used_time,memb___id,memb_name,memb_guid,sno__numb,Bill_Section,Bill_value,Bill_Hour,Surplus_Point,Surplus_Minute,Increase_Days ) VALUES ('2005','1',1234,'$login','$name',1,'7','6','3','6','6','2003-11-23 10:36:00','0' )";
    $msresults= mssql_query($msquery2);
    $msresults= mssql_query($msquery3);
    $msresults= mssql_query($msquery4);
    echo "<p align='center'>Account successfully created.</p>
    <br><p align='left'>Login ID: $login<br>
    Name: $name <br>
    E-mail: $email<br>
    ID Number: $idnumb<br>
    Password: $pw<br>
    Question: $sques<br>
    Answer: $sansw </p>";
    **
    ?>
    </h6></th>
    </tr>
    </table>
    </DIV>
    </TD>
    </TR>
    <TR>
    <TD class=headBG1 vAlign=center><div align="center"><SPAN class=textLogin><?php print $credits; ?> </SPAN></div></TD>
    </TR></TBODY></TABLE>
    </TD>
    </TR></TBODY></TABLE></DIV></BODY></HTML>
    can anyone help me find any script for a simple change password service? im having a hard time scripting my own. noob in PHP with SQL dbase.

  3. #3
    Account Upgraded | Title Enabled! [N]asser is offline
    MemberRank
    Nov 2004 Join Date
    1,040Posts
    Quote Originally Posted by Conadar
    i have spent a long time trying to get this to work wtf is up with it i did everything you said and still no result wtf wtf wtf
    Mssql is not enabled in your php.ini

    PS - Mu uses mssql, not mysql.

    [N]asser` ~ Out

  4. #4
    Gamma SkylineMaster is offline
    MemberRank
    Nov 2004 Join Date
    CubaLocation
    3,008Posts
    php.ini is in X:/Windows/php.ini and MSSQL click START-ALL PROGRAMS-MICROSOFT SQL SERVER-SERVICE MANAGER and then click start.

  5. #5
    Alpha Member john_d is offline
    MemberRank
    Feb 2004 Join Date
    PhilippinesLocation
    2,868Posts
    people should stop releasing hackable pages or site.. makes me wanna delete all these posts...

    coz.
    1. Ragezone will not be held responsible if u got hacked
    2. Cause i we care if u get hacked.
    3. Cause it annoys me to death asking why u got hacked.

  6. #6
    Alpha Member john_d is offline
    MemberRank
    Feb 2004 Join Date
    PhilippinesLocation
    2,868Posts
    enable ur php_mssql.dll extension

  7. #7
    Gamma SkylineMaster is offline
    MemberRank
    Nov 2004 Join Date
    CubaLocation
    3,008Posts
    Quote Originally Posted by naiomi
    Can i use this guide to make remote?
    i want this simple registration but i want it as a remote.
    how can i make it remote?
    tnx
    yes u can have it in other PC just write the Server Computer IP in the Config.php file and there u go :P

  8. #8
    Member hardrive is offline
    MemberRank
    Jul 2004 Join Date
    57Posts
    Fatal error: Call Undefined function mssql_connect() in x:\Program Files\Apache Group\Apache2\htdocs\config.php on line 37

    need ur help pls.. i followed the steps.. checked the Php.ini and everything.. what did i miss.. tnx in advance...

    http://ajr-mu.dyndns.ws/reguser.php

  9. #9
    Enthusiast superninja is offline
    MemberRank
    May 2005 Join Date
    BulgariaLocation
    49Posts
    where is that config.php??

  10. #10
    Enthusiast superninja is offline
    MemberRank
    May 2005 Join Date
    BulgariaLocation
    49Posts
    where is that 'config.php'?

  11. #11
    Account Upgraded | Title Enabled! Miracle is offline
    MemberRank
    Sep 2005 Join Date
    In a different Time DemensionLocation
    293Posts

    arggg

    [[*]Editing php.ini
    Click Start, go to Run, and type C:/Windows/php.ini[*]Now search this line ;extension_mssql using CTRL+F and remove the ;[*]Opening Registration Page http://LocalIP/Register/reguser.php[/List]
    DONE. :)

    When I go C:/Windows/php.ini I cannot find the text you specified. ;extension_mssql :(

  12. #12
    Apprentice M-star is offline
    MemberRank
    May 2005 Join Date
    The NetherlandsLocation
    9Posts
    the new php.ini is different guys..
    and mssql is not anymore IN the file..
    this is what you must copy/paste in the php.ini :
    extension=php_mssql.dll
    extension=php_msql.dll

    then it must work fine ;)

  13. #13
    Member jimmyman is offline
    MemberRank
    Aug 2004 Join Date
    UK EnglandLocation
    66Posts
    if you get "mssql_connect() in c:\appserv\www\config.php on line 37"

    Reinstall MSSQL:

    1. Installing SQL Server 2000: Extract SQLEVAL.exe.
    2. Run Setup.exe and click Next 8 times.
    3. It will show you this window named Services Accounts.
    4. In Service Settings set it to Use the Local System Account.
    5. Click Next and it will show the Authentication Mode window.
    6. Set it to Mixed Mode(Windows Authentication and SQL server Authentication) after that make sure to set a password below.
    7. The password will be the sa account password, you will need it after on if you want to set an online registration.

    8. Then click next to continue the Installation

    make sure you have done steps 4 and 5

    4. Editing php.ini

    Click Start, go to Run, and type C:/Windows/php.ini

    5. Now search this line ;extension_mssql using CTRL+F and remove the ;

  14. #14
    Account Upgraded | Title Enabled! hansen is offline
    MemberRank
    Sep 2005 Join Date
    up your ass ...Location
    251Posts
    guys this page is weird i tryed to install ap server i dont know what to put for the user name and pass

  15. #15
    Gamma [GR]SiLvER is offline
    MemberRank
    May 2005 Join Date
    GreeceLocation
    3,074Posts
    Thread cleaned ( deleted 69 replys )

    if you got connect_mssql error then you have to go to php.ini and remove ; from ;extension=php_mssql.dll so it will become extension=php_mssql.dll
    this page is the easiest and the oposite of 'weird' , username and pass are the MSSQL acces information (default username = sa password = blank )

    a skinned mod by me : Extreme edition
    Last edited by [GR]SiLvER; 11-12-05 at 11:17 PM.

  16. #16
    Enthusiast -ASH- is offline
    MemberRank
    Jan 2005 Join Date
    In the worldLocation
    29Posts
    some bug, when i use this page, it tell me that acount succesfully created but when i launch the game, and i put login and pass and click on connect it tell me "no charge info"

    Solution to this?

  17. #17
    Gamma [GR]SiLvER is offline
    MemberRank
    May 2005 Join Date
    GreeceLocation
    3,074Posts
    Quote Originally Posted by -ASH-
    some bug, when i use this page, it tell me that acount succesfully created but when i launch the game, and i put login and pass and click on connect it tell me "no charge info"

    Solution to this?
    don't stands here,it's most posible that it's bug from your database

  18. #18
    Account Upgraded | Title Enabled! hansen is offline
    MemberRank
    Sep 2005 Join Date
    up your ass ...Location
    251Posts
    umm this is what the server gives me===>Fatal error: Call to undefined function: mssql_connect() in c:\appserv\www\config.php on line 37
    can u help pls

  19. #19
    Account Upgraded | Title Enabled! hansen is offline
    MemberRank
    Sep 2005 Join Date
    up your ass ...Location
    251Posts
    nvm i got it i just for got to look on the first page sry for the inconveunce

  20. #20
    Newbie kn95951135 is offline
    MemberRank
    Nov 2005 Join Date
    MalaysiaLocation
    388Posts
    Who can give me php.ini?
    Cos my php.ini dont have
    ;extension_mssql
    ;extension=php_mssql.dll
    cos i using app 2.4.4a
    Last edited by kn95951135; 01-01-06 at 08:15 PM.

  21. #21
    Enthusiast superninja is offline
    MemberRank
    May 2005 Join Date
    BulgariaLocation
    49Posts
    i've got the same error my fellow ,please help!

  22. #22
    Novice siim8905 is offline
    MemberRank
    Jan 2006 Join Date
    2Posts

    Hey, sry for being dumb but...

    Fatal error: Call to undefined function: mssql_connect() in c:\appserv\www\register\config.php on line 37

    sry i edited this but yea reinstal sql. thx all
    Last edited by siim8905; 27-01-06 at 05:05 PM.

  23. #23
    o_O TakaShi^^ is offline
    MemberRank
    Nov 2004 Join Date
    HeavenLocation
    1,266Posts
    Go to C:\WINDOWS , Search for php.ini

    Edit with notepad
    Find This ===> ;extension=php_mssql.dll

    Remove the ; So it will be extension=php_mssql.dll instead of ;extension=php_mssql.dll

    Now Go to Start>All Programs>Service Control Center> Apache Restart

  24. #24
    Proficient Member discokandi is offline
    MemberRank
    Apr 2005 Join Date
    By The BeachLocation
    175Posts
    thanks too fast. :) no glitches in here right?

  25. #25
    Member niki236 is offline
    MemberRank
    Sep 2005 Join Date
    90Posts

    hmmmm

    i have his problem

    Warning: mssql_connect(): message: Login failed for user 'sa'. (severity 14) in c:\appserv\www\register\config.php on line 37

    Warning: mssql_connect(): Unable to connect to server: 127.0.0.1 in c:\appserv\www\register\config.php on line 37

    Warning: mssql_select_db(): supplied argument is not a valid MS SQL-Link resource in c:\appserv\www\register\config.php on line 38


    and my "extension=php_mssql.dll" is without ;

    my config.php is

    <?php

    //Admin Login

    $alogin = 'sa';

    //Admin Password

    $apass = 'pw';

    //Database Name

    $db = 'MuOnline';

    //Variables

    $ip = "127.0.0.1";

    //Host. IP If working remotely

    $host = '127.0.0.1';

    //Title that will appear on all pages.

    $title = 'Simple registration page';

    //Server Name

    $srvname = 'server name';

    //Credits

    $credits = 'Simple registration page';

    //Database Connection

    $msconnect=mssql_connect("$host","$alogin","$apass");
    $msdb=mssql_select_db("$db",$msconnect);

    ?>



Page 1 of 4 1234 LastLast

Advertisement