Register for your free account! | Forgot your password?

You last visited: Today at 02:19

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

Advertisement



Good Question?

Discussion on Good Question? within the EO PServer Hosting forum part of the Eudemons Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2009
Posts: 171
Received Thanks: 123
Good Question?

Well im creating a website got it all done. Now all i need to do is change the register page that grandalio released. IDK how though. How can i add it into my site if it dont accept codes? This is the code.
Code:
mb_http_input("utf-8");<?
$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

	// Dont Edit after this
	mysql_connect($myhost,$myuser,$mypass);
	mysql_select_db($mydb);
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Account Registration</title>
<script type="text/javascript" src="./inc/md5.js"></script>
</head>
<body bgcolor="#000000" text="#FFFFFF">

<DIV align="center"><b class="h2">
 <?php
	echo "Welcome to Our Account Registration";
 ?>
	Account Registration</b><br />

<br />
<form method='post' action='register.php'>
      <TABLE width="312">
        <TBODY>
        <TR>
          <TD id=GoodStuff style="PADDING-LEFT: 0px; MARGIN-LEFT: 0px">
            <DIV id=theform style="PADDING-LEFT: 0px">
            <TABLE class=body width="306" height="229">
              <TBODY>
              <TR>
                <TD align="left" height="32"><b>UserID:</b></TD>
                <TD class=it3 height="32">
				<INPUT class=it style="FONT-SIZE: 9pt; font-weight:700" name="id" id="id"><b>
				</b>				</TR>
              <TR>
                <TD align="left" height="37"><b>Password:</b></TD>
                <TD class=it3 height="37">
				<INPUT class=it id="ipassword" style="FONT-SIZE: 9pt; font-weight:700" type=password maxLength=12 name=pass></TD>
                </TR>
              <TR>
                <TD align="left" height="32"><b>Retype Password:</b></TD>
                <TD class=it3 height="32">
				<input class=it1 id="ipassword" style="FONT-SIZE: 9pt; font-weight:700" type=password maxlength=12 name=retpass></TD>
                </TR>
                <tr>
                <TD class=Label align="right" height="32">
				<p align="left"><b>Email:</b></TD>
                <TD class=it3 height="32"> 
                  <input class=it id="email" style="FONT-SIZE: 9pt; font-weight:700" type=email maxlength=24 name=email></TD> 
                </tr>
                <TR>
                <TD>&nbsp;</TD>
                <TD style="FONT-SIZE: 14px; VERTICAL-ALIGN: middle">
				<span style="font-size: 9pt">
				<input type="hidden" name="hash" style="font-weight: 700">
				<p align="center">
				<input class=Butt type=submit onClick="hash.value = login(pass.value)" value='Register' name=B1 style="float: left; font-weight: 700"></span></TD>
                </TR></TBODY></TABLE>
            </DIV></TD></TR></TBODY></TABLE></FORM>
			<center>
			<?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.";
								}
							}
						}


						}

			?>
			</center>
</DIV>
</body>
</html>
mb_http_output("utf-8");
How wud i be able to make it fit my site? I cant change the link to redirect. Please answere, thank you. And help me add a link back to epvp on the home page. Thank you.
jayk10304 is offline  
Thanks
1 User
Old 08/06/2010, 12:07   #2
 
javairc's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 559
Received Thanks: 183
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

	// Dont Edit after this
	mysql_connect($myhost,$myuser,$mypass);
	mysql_select_db($mydb);
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Account Registration</title>
<script type="text/javascript" src="./inc/md5.js"></script>
</head>
<body bgcolor="#000000" text="#FFFFFF">

<DIV align="center"><b class="h2">
 <?php
	echo "Welcome to Our Account Registration";
 ?>
	Account Registration</b><br />

<br />
<form method='post' action='register.php'>
      <TABLE width="312">
        <TBODY>
        <TR>
          <TD id=GoodStuff style="PADDING-LEFT: 0px; MARGIN-LEFT: 0px">
            <DIV id=theform style="PADDING-LEFT: 0px">
            <TABLE class=body width="306" height="229">
              <TBODY>
              <TR>
                <TD align="left" height="32"><b>UserID:</b></TD>
                <TD class=it3 height="32">
				<INPUT class=it style="FONT-SIZE: 9pt; font-weight:700" name="id" id="id"><b>
				</b>				</TR>
              <TR>
                <TD align="left" height="37"><b>Password:</b></TD>
                <TD class=it3 height="37">
				<INPUT class=it id="ipassword" style="FONT-SIZE: 9pt; font-weight:700" type=password maxLength=12 name=pass></TD>
                </TR>
              <TR>
                <TD align="left" height="32"><b>Retype Password:</b></TD>
                <TD class=it3 height="32">
				<input class=it1 id="ipassword" style="FONT-SIZE: 9pt; font-weight:700" type=password maxlength=12 name=retpass></TD>
                </TR>
                <tr>
                <TD class=Label align="right" height="32">
				<p align="left"><b>Email:</b></TD>
                <TD class=it3 height="32"> 
                  <input class=it id="email" style="FONT-SIZE: 9pt; font-weight:700" type=email maxlength=24 name=email></TD> 
                </tr>
                <TR>
                <TD>&nbsp;</TD>
                <TD style="FONT-SIZE: 14px; VERTICAL-ALIGN: middle">
				<span style="font-size: 9pt">
				<input type="hidden" name="hash" style="font-weight: 700">
				<p align="center">
				<input class=Butt type=submit onClick="hash.value = login(pass.value)" value='Register' name=B1 style="float: left; font-weight: 700"></span></TD>
                </TR></TBODY></TABLE>
            </DIV></TD></TR></TBODY></TABLE></FORM>
			<center>
			<?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.";
								}
							}
						}


						}

			?>
			</center>
</DIV>
</body>
</html>
Correction use this code put at your main folder www and save to register.php then if want register use i:e for linkback u can use this code

Code:
<a href="http://www.elitepvpers.com" target="blank">ElitePvpers</a>
p/s : sorry if i wrong
javairc is offline  
Thanks
1 User
Old 08/07/2010, 03:23   #3
 
elite*gold: 0
Join Date: Nov 2009
Posts: 171
Received Thanks: 123
Quote:
Originally Posted by javairc View Post
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

	// Dont Edit after this
	mysql_connect($myhost,$myuser,$mypass);
	mysql_select_db($mydb);
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Account Registration</title>
<script type="text/javascript" src="./inc/md5.js"></script>
</head>
<body bgcolor="#000000" text="#FFFFFF">

<DIV align="center"><b class="h2">
 <?php
	echo "Welcome to Our Account Registration";
 ?>
	Account Registration</b><br />

<br />
<form method='post' action='register.php'>
      <TABLE width="312">
        <TBODY>
        <TR>
          <TD id=GoodStuff style="PADDING-LEFT: 0px; MARGIN-LEFT: 0px">
            <DIV id=theform style="PADDING-LEFT: 0px">
            <TABLE class=body width="306" height="229">
              <TBODY>
              <TR>
                <TD align="left" height="32"><b>UserID:</b></TD>
                <TD class=it3 height="32">
				<INPUT class=it style="FONT-SIZE: 9pt; font-weight:700" name="id" id="id"><b>
				</b>				</TR>
              <TR>
                <TD align="left" height="37"><b>Password:</b></TD>
                <TD class=it3 height="37">
				<INPUT class=it id="ipassword" style="FONT-SIZE: 9pt; font-weight:700" type=password maxLength=12 name=pass></TD>
                </TR>
              <TR>
                <TD align="left" height="32"><b>Retype Password:</b></TD>
                <TD class=it3 height="32">
				<input class=it1 id="ipassword" style="FONT-SIZE: 9pt; font-weight:700" type=password maxlength=12 name=retpass></TD>
                </TR>
                <tr>
                <TD class=Label align="right" height="32">
				<p align="left"><b>Email:</b></TD>
                <TD class=it3 height="32"> 
                  <input class=it id="email" style="FONT-SIZE: 9pt; font-weight:700" type=email maxlength=24 name=email></TD> 
                </tr>
                <TR>
                <TD>&nbsp;</TD>
                <TD style="FONT-SIZE: 14px; VERTICAL-ALIGN: middle">
				<span style="font-size: 9pt">
				<input type="hidden" name="hash" style="font-weight: 700">
				<p align="center">
				<input class=Butt type=submit onClick="hash.value = login(pass.value)" value='Register' name=B1 style="float: left; font-weight: 700"></span></TD>
                </TR></TBODY></TABLE>
            </DIV></TD></TR></TBODY></TABLE></FORM>
			<center>
			<?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.";
								}
							}
						}


						}

			?>
			</center>
</DIV>
</body>
</html>
Correction use this code put at your main folder www and save to register.php then if want register use i:e for linkback u can use this code

Code:
<a href="http://www.elitepvpers.com" target="blank">ElitePvpers</a>
p/s : sorry if i wrong
Well its not a website i created.. its a site i bought and im working on. Check my signature for the link. If you can message me on MSN tht can do good to. I got TeamViewer so you can see the control panal and see if you can figure it out. BTW i love your profile picture, you look very buetiful.
jayk10304 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Question]Good free web hoster?
11/16/2009 - CO2 Private Server - 5 Replies
Yeah off topic here any one of a good free web hoster? Besides web.com or freewebs <.< I wanan try ucoz.com but i wanna upload my own template anyone know off a good free web hoster or how to upload a template with ucoz?
ok this is random but a good question
10/25/2009 - Shaiya - 7 Replies
would it be possible if u could change all mob types to green... so it would make it to were u could still hit high but gain the same xp as they would give if they were normally green to you at the lvl that they would be green to you. idk why i realized this is so simple but it would be a very effective way of leveling...
[QUESTION] Any good Cheap Vps?
06/30/2009 - CO2 Private Server - 10 Replies
Anyone know any good and kinda cheap Vps?
[Question] Server with good rates u.u
06/22/2008 - Cabal Online - 25 Replies
someone have a server with VERy good rates?? i only found here servers with 2x~10x and the other i think cabal8 are saying that its offline... and EVERYYYY server that i found in google redirict to a idiot site like myminicity something like that... someone know i good and online server of cabal??? =)...>?????
A good Question About Siege Kits
06/08/2008 - RF Online - 0 Replies
A good Question About Siege KitsA good Question About Siege KitsA good Question About Siege KitsA good Question About Siege KitsA good Question About Siege Kits



All times are GMT +2. The time now is 02:19.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.