[REQUEST]RegisterPage+ Additions

02/06/2010 03:03 EliteWarrior#1
Hi since i dont see nowwhere a release or a share im requesting this:

Registration page with ability to change password + email validation ,i have a script for you if u need it.

Code:
<?php
//Check whether the submission is made
if(!isset($_POST["hidSubmit"])){ $stremail="";
DisplayForm();
}
else{

//Validate the Email Address
$stremail=$_POST["txtemail"];
$result=ereg("^[^@ ]+@[^@ ]+\.[^@ ]+$",$stremail,$trashed);
if(!$result){
echo "Enter a valid E-mail Address";
DisplayForm();
}
else{
echo "Invalid E-mail Address";
$stremail="";
DisplayForm();
}
}

//User-defined Function to display the form in case of Error
function DisplayForm(){
global $stremail;
?>

HTML code for the form follows..



Code:
&ltform name="form1" method="post" action="">
&lttable width="100%"  border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#0033FF" bgcolor="#DEE3EF" >
&lttr><td width="100%">&lttable width="60%"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#DEE3EF">
&ltcaption align="top" class="heading">
E-Mail Validation
&ltbr>
&lttr>
&lttd width="46%"><br>
&ltdiv align="right">Enter An Email Address </td>&lttd width="54%"><br>
&ltinput name="txtemail" type="text" class="textbox" id="txtemail" value="<?php echo $stremail; ?>">
   </tr>
   &lttr>
 <td colspan="2"> <div align="center">&ltbr>
<input name="Submit" type="submit" class="button" value="Submit">
<input name="hidSubmit" type="hidden" value="true">
  </div>
</td>
</tr>
</td>
<?php
return;
}
?>

Janvier u could perhaps add this to ur current registerpage with recaptcha it should perfect when these addons are added.


And when u make it make sure the script returns no errors or well less errors for security reasons.
02/06/2010 08:46 janvier123#2
ill make one, but WITH ANTI SQL INJECT,
02/06/2010 08:54 -8gX#3
Lol absolutly no field entry checking. Pretty pro lmao.
02/06/2010 17:16 EliteWarrior#4
That script is just a example -8gx.