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:
<form name="form1" method="post" action=""> <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#0033FF" bgcolor="#DEE3EF" > <tr><td width="100%"><table width="60%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#DEE3EF"> <caption align="top" class="heading"> E-Mail Validation <br> <tr> <td width="46%"><br> <div align="right">Enter An Email Address </td><td width="54%"><br> <input name="txtemail" type="text" class="textbox" id="txtemail" value="<?php echo $stremail; ?>"> </tr> <tr> <td colspan="2"> <div align="center"><br> <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.






