[Guide] Register Page without CAPTCHA

04/30/2010 01:43 .Ash#1
First of all, If you're thinking this is leeched or w.e, get out.. lol this is for the people that don't know how to. Anything that needs to be edited will be in a Different Color.

Editing Host:


Things need:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...] (Optional)
Color Chart : [Only registered and activated users can see links. Click Here To Register...]

Step 1: Download the Register Page without CAPTCHA.

Step 2: Open Register.php with a Text Editor.
Step 3: See where it says
PHP Code:
<?
$myhost
="localhost";
    
$mypass="test";         //your server login password
    
$myuser="root";         //your server login username
    
$mydbacc="account";        //your server account database
    
$mydbdata="my";            //your server my database name
    
$serverport=3306;        //your server connection port
    
$mydb="my";            //your server my database

    // Dont Edit after this
    
mysql_connect($myhost,$myuser,$mypass);
    
mysql_select_db($mydb);
?>
Edit it.

Step 4: Copy and Paste in your Directory. And done lol


Editing the Body:

Step 1: Edit the Title, Its in <title>Account Registration</title>. Type anything inside the <title> Tags.

Step 2: Next thing you want to edit is the Title on the actual Page.
Code:
<?php
	echo "[COLOR="Red"]Welcome to Our Account Registration[/COLOR]";
 ?>
	[COLOR="Red"]Account Registration[/COLOR]
Step 3: Edit the User Name (Optional)
Code:
<TR>
                <TD align="left" height="32"><b>[COLOR="Red"]UserID:[/COLOR]</b></TD>
                <TD class=it3 height="32">
				<INPUT class=it style="FONT-SIZE: 9pt; font-weight:700" name="id" id="id"><b>
				</b>				</TR>
And so on with the others ( Password, Retype Password, Email). REMOVE Email IF YOU DONT HAVE THAT COLUMN IN ACCOUNT DB. It don't matter but just to make things clear.

Do not edit After this:
PHP 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.";
                                }
                            }
                        }


                        }

            
?>
UNLESS YOU KNOW WHAT YOU'RE DOING.


Extra Things:
Icon
*
Code:
<link REL="SHORTCUT ICON" HREF="[COLOR="Red"]LinkHere[/COLOR]">
Add that right before <head> tags

Background
*
Code:
Delete -->   <body bgcolor="#000000" text="#FFFFFF">
Code:
add -->> <body background=[COLOR="Red"]THEURL[/COLOR] text="[COLOR="Red"]red[/COLOR]">
Change the Red Font to get your own things.

Congratz! You've made a Register Page with no Recaptcha code AND You've Learned HTML :D

Credits:
Grandalio -> Released the Script
Spongebox -> Made the Guide..

Any questions? Reply below.. Again, I didn't Leech, Lol
05/11/2010 19:24 wamo0#2
i need help i every time i go to the register page and register it say

Quote:
Warning: mysql_select_db() [function.mysql-select-db]: Connecting to 3.22, 3.23 & 4.0 is not supported. Server is 4.0.18-nt in C:\wamp\www\register.php on line 72

Warning: mysql_select_db() [function.mysql-select-db]: Connecting to 3.22, 3.23 & 4.0 servers is not supported in C:\wamp\www\register.php on line 72

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in C:\wamp\www\register.php on line 72

Deprecated: Function ereg() is deprecated in C:\wamp\www\register.php on line 81

Warning: mysql_query() [function.mysql-query]: Connecting to 3.22, 3.23 & 4.0 is not supported. Server is 4.0.18-nt in C:\wamp\www\register.php on line 87

Warning: mysql_query() [function.mysql-query]: Connecting to 3.22, 3.23 & 4.0 servers is not supported in C:\wamp\www\register.php on line 87

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\wamp\www\register.php on line 87

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\register.php on line 88

Warning: mysql_query() [function.mysql-query]: Connecting to 3.22, 3.23 & 4.0 is not supported. Server is 4.0.18-nt in C:\wamp\www\register.php on line 90

Warning: mysql_query() [function.mysql-query]: Connecting to 3.22, 3.23 & 4.0 servers is not supported in C:\wamp\www\register.php on line 90

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\wamp\www\register.php on line 90
Account registered successfully.
[Only registered and activated users can see links. Click Here To Register...]

and when i open Navicat account i found that the account is not created i am about to be mad

if any one know how to fix that contact me [Only registered and activated users can see links. Click Here To Register...]
05/11/2010 19:27 rexes13#3
Well the error is that your .php is not rightly connected to your db.That causes the connection problem and as a result you cant create an account!
05/11/2010 19:47 wamo0#4
Quote:
Originally Posted by rexes13 View Post
Well the error is that your .php is not rightly connected to your db.That causes the connection problem and as a result you cant create an account!
i know that is the error i wanna know how to fix it i asked many times how to fix or edit register.php and no one help or show how to :mad:
05/11/2010 20:30 .Ash#5
Quote:
Originally Posted by wamo0 View Post
i know that is the error i wanna know how to fix it i asked many times how to fix or edit register.php and no one help or show how to :mad:
Do you have a Account DataBase?... Lol if not set it to account table in MY Database.. Heres how.
PHP Code:
$myhost="localhost";
    
$mypass="test";         //your server login password
    
$myuser="root";         //your server login username
    
$mydbacc="Change This from account to where ever it is..";        //your server account database
    
$mydbdata="my";            //your server my database name
    
$serverport=3306;        //your server connection port
    
$mydb="my";            //your server my database 
05/11/2010 20:47 wamo0#6
Quote:
Originally Posted by SpongeBox View Post
Do you have a Account DataBase?... Lol if not set it to account table in MY Database.. Heres how.
PHP Code:
$myhost="localhost";
    
$mypass="test";         //your server login password
    
$myuser="root";         //your server login username
    
$mydbacc="Change This from account to where ever it is..";        //your server account database
    
$mydbdata="my";            //your server my database name
    
$serverport=3306;        //your server connection port
    
$mydb="my";            //your server my database 
[Only registered and activated users can see links. Click Here To Register...]
05/11/2010 20:50 wamo0#7
Quote:
Originally Posted by SpongeBox View Post
Do you have a Account DataBase?... Lol if not set it to account table in MY Database.. Heres how.
PHP Code:
$myhost="localhost";
    
$mypass="test";         //your server login password
    
$myuser="root";         //your server login username
    
$mydbacc="Change This from account to where ever it is..";        //your server account database
    
$mydbdata="my";            //your server my database name
    
$serverport=3306;        //your server connection port
    
$mydb="my";            //your server my database 
is that right :confused:

Quote:
<?
$myhost="localhost";
$mypass="rufeng"; //your server login password
$myuser="root"; //your server login username
$mydbacc="account"; //your server account database
$mydbdata="account"; //your server my database name
$serverport=3306; //your server connection port
$mydb="account"; //your server my database

or that one :( whatever that's my Email [Only registered and activated users can see links. Click Here To Register...] add me to send you my computer team view id and pass to you can log in and change it to right one and here the team view program download link [Only registered and activated users can see links. Click Here To Register...]
05/11/2010 20:51 .Ash#8
Quote:
Originally Posted by wamo0 View Post
is that right :confused:
Wrong..

Code:
<?
$myhost="localhost";
$mypass="rufeng"; //your server login password
$myuser="root"; //your server login username
$mydbacc="account"; //your server account database
$mydbdata="my"; //your server my database name
$serverport=3306; //your server connection port
$mydb="my"; //your server my database
COPY AND PASTE THIS
05/11/2010 21:02 wamo0#9
Quote:
Originally Posted by SpongeBox View Post
Wrong..

Code:
<?
$myhost="localhost";
$mypass="rufeng"; //your server login password
$myuser="root"; //your server login username
$mydbacc="account"; //your server account database
$mydbdata="my"; //your server my database name
$serverport=3306; //your server connection port
$mydb="my"; //your server my database
COPY AND PASTE THIS


not working too :(
05/12/2010 01:17 .Ash#10
Did you edit it? like your password and user for mysql?
05/12/2010 03:42 wamo0#11
Quote:
Originally Posted by SpongeBox View Post
Did you edit it? like your password and user for mysql?
ya but i don't know how to get the right user and pass i used navicat user and pass
05/12/2010 05:18 jayk10304#12
do u need any program for this? i just needd a register script, not a friggen website lmao, but good release spongebox, can u explain to me how to do it? cuz u got me all confused, tell me wwhat programs i need if i do need them and how to do it and then how to acess teh register script or w.e, thanks
05/12/2010 20:40 .Ash#13
Quote:
Originally Posted by wamo0 View Post
ya but i don't know how to get the right user and pass i used navicat user and pass
Quote:
Originally Posted by jayk10304 View Post
do u need any program for this? i just needd a register script, not a friggen website lmao, but good release spongebox, can u explain to me how to do it? cuz u got me all confused, tell me wwhat programs i need if i do need them and how to do it and then how to acess teh register script or w.e, thanks
You dont need anything but both of you follow these steps..

Step 1) Delete my.ini
Step 2) Run WinMySQLAdmin
Step 3) For User put root and For Password put test
Step 4) Go to Navicat and open your Connection.
Step 5) And set it like you see it...

Code:
<? 
$myhost="localhost"; 
    $mypass="test";         //your server login password 
    $myuser="root";         //your server login username 
    $mydbacc="account";        //your server account database 
    $mydbdata="my";            //your server my database name 
    $serverport=3306;        //your server connection port 
    $mydb="my";            //your server my database 

    // Dont Edit after this 
    mysql_connect($myhost,$myuser,$mypass); 
    mysql_select_db($mydb); 
?>
If you can't connect, Right click on the connection and properties. Then put in root and test. Try now. Also Open port 80
05/12/2010 23:08 jayk10304#14
Quote:
Originally Posted by SpongeBox View Post
You dont need anything but both of you follow these steps..

Step 1) Delete my.ini
Step 2) Run WinMySQLAdmin
Step 3) For User put root and For Password put test
Step 4) Go to Navicat and open your Connection.
Step 5) And set it like you see it...

Code:
<? 
$myhost="localhost"; 
    $mypass="test";         //your server login password 
    $myuser="root";         //your server login username 
    $mydbacc="account";        //your server account database 
    $mydbdata="my";            //your server my database name 
    $serverport=3306;        //your server connection port 
    $mydb="my";            //your server my database 

    // Dont Edit after this 
    mysql_connect($myhost,$myuser,$mypass); 
    mysql_select_db($mydb); 
?>
If you can't connect, Right click on the connection and properties. Then put in root and test. Try now. Also Open port 80
my.ini in my windows? or for my server, or from where?
05/12/2010 23:15 .Ash#15
from Windows lol