Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Eudemons Online > EO PServer Hosting
You last visited: Today at 05:04

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

Advertisement



[Help] Register.php That ask for Email

Discussion on [Help] Register.php That ask for Email within the EO PServer Hosting forum part of the Eudemons Online category.

Reply
 
Old   #1
 
DaLaughinMan8's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 94
Received Thanks: 20
[Help] Register.php That ask for Email

I would like my register page to ask for the person's email. That way if I need to reset their password I can send it straight to their email.

So can someone show me a guild or some way that I can edit this?
DaLaughinMan8 is offline  
Old 04/18/2010, 22:58   #2
 
elite*gold: 0
Join Date: Dec 2009
Posts: 375
Received Thanks: 149
copy and paste this in ur registur.php

Code:
<?php
include('config.php');
?>
<script type="text/javascript" src="./inc/md5.js"></script>
<form method='post' action='register.php?act=register'>
<b><strong>Please make sure you remember your Account ID and Password</strong></b><hr>
<tr><td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td width="64" valign="top"></td>
<td valign="top">
<table width="100%" border="0" cellspacing="10" cellpadding="0">
<tr><td><strong>Account ID:</strong></td>
<td width="66%"><input type="text" size="30" maxlength="15" name="id" id="id" title="* Only 4-15 Words/number"></td></tr>
<tr><td><strong>Password:</strong></td>
<td><input class=it id="ipassword" type="password" size="30" maxlength="15" name=pass title="* Only 4-15 Words/number"></td></tr>
<tr><td><strong>Retype Password:</strong></td>
<td><input class=it1 id="ipassword" type="password" size="30" maxlength="15" name=retpass title="* Only 4-15 Words/number"></td></tr>
<tr><td><strong>Email</strong></td>
<td width="66%"><input type="text" size="30" maxlength="30" name="email" id="email" title="* Use a valid email"></td></tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<br /><br />
<TABLE align="center">
<tr><td align="center"><input type="hidden" name="hash"><input class=Butt type=submit onclick="hash.value = login(pass.value)" value='register' name=B1></td></tr>
</table>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<?php
                        if($_GET['act'] == "register")
                                {
                                        mysql_select_db($mydbacc);
                                        $userid = trim($_POST['id']);
                                        $password=trim($_POST['pass']);
                                        $passretype=trim($_POST['retpass']);
                                        $hash=$_POST['hash'];
					$_SERVER['REMOTE_ADDR'];
                                        $email = $_REQUEST['email'];
                                         if($userid=="" || $password=="" || $passretype=="" )
                                         {
                                                echo "<center>You must fill all information in the Required Field!</center>";
                                         }
                                         else
                                         {
                                             if($password == $passretype)
                                                 {
                                                  if(!ereg("^[0-9a-z]{4,15}$",$userid))
                                                  {
                                                        echo "<center>Only letters and numbers only are allowed.Long 4 to 15 words</center>";
                                                        }
                                                        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,netbar_ip,email) values ('".$userid."','".$hash."','".date("y-m-d H:i:s", time())."','".$_SERVER['REMOTE_ADDR']."','".$email."')");
									echo "<center>Account successfully registered!</center>";
                                                                }
                                                                else
                                                                {
                                                                        echo "<center>This account has been registered, please select another!</center>";
                                                                }
                                                        }
                                                }
                                                else
                                                {
                                                        echo "<center>Password authentication is not the same as your Password</center>";
                                                }
                                        }
                                }
                        ?>
Knight^Hawk is offline  
Thanks
2 Users
Old 04/18/2010, 23:26   #3
 
DaLaughinMan8's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 94
Received Thanks: 20
Ok so far the only problem that I'm getting is that if I put it in the "pages" folder it would just send me to a blank page when I click the register button. Is there a way I can fix that?
DaLaughinMan8 is offline  
Old 04/18/2010, 23:35   #4
 
elite*gold: 0
Join Date: Dec 2009
Posts: 375
Received Thanks: 149
that has something to do with ur index.php i believe
Knight^Hawk is offline  
Old 04/19/2010, 00:06   #5
 
DaLaughinMan8's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 94
Received Thanks: 20
I got it to work now I took a few of the lines you had and added to the register.php I was using. Now if only I remember how I change the ip limit. I thought I backup my register but it turn out to be the very first one that had the problem with the ip limit. I guess that's what i get for not double checking it.

Thanks again for the help
DaLaughinMan8 is offline  
Old 04/19/2010, 00:44   #6
 
PraDevil[ELITE]'s Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 1,486
Received Thanks: 919
Quote:
Originally Posted by Knight^Hawk View Post
copy and paste this in ur registur.php

...........
atleast leave credit to me coz make it..
PraDevil[ELITE] is offline  
Old 04/19/2010, 01:03   #7
 
elite*gold: 0
Join Date: Dec 2009
Posts: 375
Received Thanks: 149
um no u didnt i copied and pasted it from my register script
Knight^Hawk is offline  
Old 04/19/2010, 03:02   #8
 
.Ash's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,175
Received Thanks: 540
no point of having to ask them for thier email and not have it down anywhere...

Heres how to do it, dump sql of your account table, add this line
Code:
`email` varchar(32) default NULL,
and run that sql again. and point the register.php to it..
.Ash is offline  
Thanks
1 User
Old 04/19/2010, 03:15   #9
 
DaLaughinMan8's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 94
Received Thanks: 20
Quote:
Originally Posted by SpongeBox View Post
no point of having to ask them for thier email and not have it down anywhere...

Heres how to do it, dump sql of your account table, add this line
Code:
`email` varchar(32) default NULL,
and run that sql again. and point the register.php to it..
My account table already had the email column I just never could find a register.php that ask for it. Thanks for the heads up
DaLaughinMan8 is offline  
Reply


Similar Threads Similar Threads
WTS or WTT for items fc7 BoT nuker + original register email andress
04/23/2010 - 9Dragons Trading - 1 Replies
male character in bardo server captive soul bk title and all skills c12 pm me if you need.
Sub-Email
03/04/2010 - Main - 4 Replies
Ich wollte mal fragen ob es eine möglichkeit GRATIS eine Subemail zu erstellen so wie eine Subdomain:de|nic|vu - Kostenlose Domains für alle! - Herzlich willkommen! (www.nic.de.vu) - Kostenlose Domain - Free Domain - Gratis Domain bloß halt so [email protected] oder so ähnlich ??? wäre dies möglich??? MfG xXDarknezzzXx
Email :P
05/02/2009 - Metin2 - 3 Replies
Huhu, ich habe ne frage :P Wenn ich Email ändern will muss ich mich erst in meine jetzige email einloggen(web oda so) und dann kommt ja so ne mail mit Metin2-Email änderung. Ändert die sich auch wenn ich nicht auf diese Link klicke? ^^ Gruß:p
Buy Mage on Trieste with register email
10/27/2008 - Trading - 0 Replies
I am looking for a mage in trieste server that come with the original email that was register with the account. lvl gotta be 100+ and tell me how much coins or dils u want for that mage.
HTML register page Connected to Email
07/04/2008 - Conquer Online 2 - 9 Replies
can someone help me with a register page on a html website? i want that the registerpage is connected to my email so when someone register i see the username in my email box i dont need a box for the password only the username if someone knows how to make that please help me then.



All times are GMT +1. The time now is 05:04.


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.