Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2
You last visited: Today at 03:19

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

Advertisement



Register code or script for 6607

Discussion on Register code or script for 6607 within the Conquer Online 2 forum part of the MMORPGs category.

Reply
 
Old 02/27/2021, 00:47   #16
 
elite*gold: 0
Join Date: Jun 2015
Posts: 39
Received Thanks: 9
It is cq but what I put here is just a sample.


Quote:
Originally Posted by denominator View Post
So the name of your database is database? Not cq, tq or something similar
HeartlessBoiYang is offline  
Old 02/27/2021, 01:31   #17
 
elite*gold: 0
Join Date: Aug 2010
Posts: 951
Received Thanks: 76
Ahh okay, why not find another webpage and edit it?
denominator is offline  
Old 02/27/2021, 12:23   #18
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 705
Quote:
Originally Posted by pintinho12 View Post
I bet he can read documentations, which will (must) be easier than setup a website from scratch.
He can also google how to use those functions but that is already too hard.
turk55 is offline  
Old 02/27/2021, 17:39   #19
 
elite*gold: 0
Join Date: Mar 2007
Posts: 155
Received Thanks: 31
Quote:
Originally Posted by HeartlessBoiYang View Post
you got it wrong. I mean i got the website everything to work, but then for the register, I can't make it to connect to the database, like after click submit/create account. It wont go into the database, all it appear is username, password. it won't appear actual username and password that you filled in. That's why I'm asking if i did something wrong or code it wrong.
Then try to change this
Code:
 $sql = "INSERT INTO `accounts` (`Username`, `Password`) VALUES ('$username', '$pass')";
To
Code:
$sql = "INSERT INTO `accounts` (`Username`, `Password`) VALUES ('{$username}', '{$pass}')";
If its just adding plain text values into your database its definitely something with the values you insert in your database.

If this ain’t working, you will need to debug it, we really can’t help you any better then this, php documentations will definitely help you.
bashondegek is offline  
Old 02/28/2021, 22:15   #20
 
elite*gold: 0
Join Date: Jun 2015
Posts: 39
Received Thanks: 9
Okay thanks i got it to work on the php side, but then now is a new question.
How do I create a form for HTML and linked it with php. like instead ofhave a new page wit no background on the php side, I want it to be able to just successful registered on the html side.

Also i know there has to be with something like

<form method="post" action='register.php'>
user:
pass:
email:
</form>

Quote:
Originally Posted by HeartlessBoiYang View Post
Okay thanks i got it to work on the php side, but then now is a new question.
How do I create a form for HTML and linked it with php. like instead ofhave a new page wit no background on the php side, I want it to be able to just successful registered on the html side.
my html file for register page:



register php code:

and my .ja file, trying to make the submit form without redirect to a new tab(white page said Successfully registered!)


so please tell me if i did anything wrong here...
HeartlessBoiYang is offline  
Old 03/01/2021, 08:42   #21
 
elite*gold: 0
Join Date: Mar 2007
Posts: 155
Received Thanks: 31
Quote:
Originally Posted by HeartlessBoiYang View Post
Okay thanks i got it to work on the php side, but then now is a new question.
How do I create a form for HTML and linked it with php. like instead ofhave a new page wit no background on the php side, I want it to be able to just successful registered on the html side.

Also i know there has to be with something like

<form method="post" action='register.php'>
user:
pass:
email:
</form>



my html file for register page:



register php code:

and my .ja file, trying to make the submit form without redirect to a new tab(white page said Successfully registered!)


so please tell me if i did anything wrong here...
Seems like you are using Ajax there.
So you won't have to use the action="blabla.php" in your form.

you just have to catch the button click in your JS and let it go through the ajax file.

Use your browser built in inspector got to console and check what errors there are.



give your button a class or id or something.
so for example;
Code:
<button id="btnRegister">register now</button>
And in your JS do something like;

Code:
$("#btnRegister").on("click", function(){
 // code of ajax
});
bashondegek is offline  
Old 03/01/2021, 18:49   #22
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 943
Received Thanks: 408
Quote:
Originally Posted by HeartlessBoiYang View Post
Okay thanks i got it to work on the php side, but then now is a new question.
How do I create a form for HTML and linked it with php. like instead ofhave a new page wit no background on the php side, I want it to be able to just successful registered on the html side.

Also i know there has to be with something like

<form method="post" action='register.php'>
user:
pass:
email:
</form>

my html file for register page:



register php code:

and my .ja file, trying to make the submit form without redirect to a new tab(white page said Successfully registered!)


so please tell me if i did anything wrong here...
Dude, trust me. You're sharing vulnerable code that you want to use on production. Learn how to use mysqli and prepared statements so at least lammers wont mysql inject your website.
pintinho12 is offline  
Thanks
1 User
Old 03/01/2021, 20:02   #23
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 705
Quote:
Originally Posted by bashondegek View Post
Seems like you are using Ajax there.
So you won't have to use the action="blabla.php" in your form.
You can, I personally do. That way I don't have URLs hardcoded in my scripts (if it's not a SPA app).

Quote:
Originally Posted by bashondegek View Post
give your button a class or id or something.
so for example;
Code:
<button id="btnRegister">register now</button>
And in your JS do something like;

Code:
$("#btnRegister").on("click", function(){
 // code of ajax
});
I would personally add the submit on the form.
Code:
document.querySelector("#registerForm").addEventListener('submit', (e) =>{
  e.preventDefault();
  const submitUrl = e.currentTarget.getAttribute("action");
 // AJAX postcall here
});
This way you can re-use your JS without having to have it specific.
turk55 is offline  
Thanks
1 User
Old 03/02/2021, 00:15   #24
 
elite*gold: 0
Join Date: Mar 2007
Posts: 155
Received Thanks: 31
Quote:
Originally Posted by turk55 View Post
You can, I personally do. That way I don't have URLs hardcoded in my scripts (if it's not a SPA app).



I would personally add the submit on the form.
Code:
document.querySelector("#registerForm").addEventListener('submit', (e) =>{
  e.preventDefault();
  const submitUrl = e.currentTarget.getAttribute("action");
 // AJAX postcall here
});
This way you can re-use your JS without having to have it specific.
Sure i won’t even do it like this myself since i’m using frameworks, most of it is already built in and its a fast way to set up secure websites if you know how it works..

Anyway i guess thats a bit to hard for him as he is not even able to make this basic register form working 😅. Just trying to help him out a little bit instead of making it harder for him to understand.
bashondegek is offline  
Old 03/02/2021, 06:44   #25
 
elite*gold: 0
Join Date: Jun 2015
Posts: 39
Received Thanks: 9
Well yeah, but I did make it work, just that it pop up a new window with no background etc. So now I need it to just stay in the same page. Hopefully u get what I mean. And yes, im still learning, better than not learning xD


Quote:
Originally Posted by bashondegek View Post
Sure i won’t even do it like this myself since i’m using frameworks, most of it is already built in and its a fast way to set up secure websites if you know how it works..

Anyway i guess thats a bit to hard for him as he is not even able to make this basic register form working 😅. Just trying to help him out a little bit instead of making it harder for him to understand.
HeartlessBoiYang is offline  
Old 03/02/2021, 08:13   #26
 
elite*gold: 0
Join Date: Mar 2007
Posts: 155
Received Thanks: 31
Quote:
Originally Posted by HeartlessBoiYang View Post
Well yeah, but I did make it work, just that it pop up a new window with no background etc. So now I need it to just stay in the same page. Hopefully u get what I mean. And yes, im still learning, better than not learning xD
I understand that, but what Turk and Pitinho are saying is true.
The code that i shared i just basic, it will work, but there are really better ways.

Anyway, it can stay in the same page using Ajax.

If you use the Code turk shared and put that in your JS, and change your button to something like this;
Code:
<button type="submit">Register now</button>
you are already doing a bit better.

Do you have any other problems? Or did you make it to work?
bashondegek is offline  
Old 03/02/2021, 23:24   #27
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 943
Received Thanks: 408


crappy but not so much
pintinho12 is offline  
Thanks
1 User
Old 03/03/2021, 00:13   #28
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 705
Quote:
Originally Posted by pintinho12 View Post


crappy but not so much
+

turk55 is offline  
Thanks
1 User
Old 03/07/2021, 07:54   #29
 
elite*gold: 0
Join Date: Jun 2015
Posts: 39
Received Thanks: 9
Thanks so much for helping me everyone, very appreciates. Sorry for being a noob(which I am, lol) and an idiots who know nothing but trying hardest to learn xD. I figured I just need to change from .html to .php, since in some way my website work either .html or .php .
HeartlessBoiYang is offline  
Reply


Similar Threads Similar Threads
6607 Source for testing purposes
07/11/2020 - CO2 PServer Guides & Releases - 10 Replies
Hello, I found a 6607 source online which is mostly functional and I'll give it out here for people who want to use it for testing purposes! DISCLAIMER: I do not encourage you to use this in a live server!!! There are many shortcomings to this source, which if you were to fix it would possibly work. I shared this just for testing purposes and for people who are looking for high sources to build on/rebuild Problems: 1. !!! PASSWORDS ARE UNENCRYPTED ON THE vikings.sql file. You should...
Fiesta Register Script V2.0 - OdinRegister Script
02/18/2013 - Fiesta Online - 6 Replies
Hey, hab das alte Fiesta Register Script V1.1 wiedergefunden und hab mir gedacht ich schreibs mal passend für JokerServer die mit OdinFiles laufen um. Das einzige was ihr machen müsst ist die index.php mit euren SQL Daten zu füttern, ihr könnt diese mit einfachen TextEditor programmen wie notepad.exe (Editor) oder wordpad öffnen. EDIT1: da war n kleiner fehler der bei über 10 Accs immer alles mit nEMID 2 erstellt hat, fixed. Neue version im Anhang.
V14 Register Script für Gms [Homepage Script]
05/21/2011 - Flyff Private Server - 10 Replies
Naja, Meine frage wär wie man nen V14 Register Page macht wo man wenn man registriert sofort Gm ist =D. PS: für ein ein Test Server ;3 Trafalgar†Law ~
[SCRIPT]Register Script !!
05/10/2010 - Metin2 PServer Guides & Strategies - 13 Replies
Hey ich wollte euch mal ein Register Script geben hab ein header und background genzu gefügt. Es ist Das stinck normale China Register Script von mir Übersetzt. Vllt wollen es ja paar von euch haben. Bild: http://img4.imageshack.us/img4/8392/92840753.jpg



All times are GMT +1. The time now is 03:20.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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