File: /home/httpd/html/seekya.com/DEAD/beta/register.php
<?include("header.php");
if ($_POST["email"]!='' && $_POST["first_name"]!='')
{
$msg='';
$sql="select count(*) from user_master where email='".$_POST["email"]."'";
$cmd = mysql_query($sql);
$rs = mysql_fetch_array($cmd);
if ($rs[0]==0)
{
$password=genpasswordnum(4);
$sql="insert into user_master(first_name,email,user_name,password,user_type,user_profile)values('".$_POST["first_name"]."','".$_POST["email"]."','".$_POST["email"]."','".$password."',3,'".pdbfx("user_profile")."')";
mysql_query($sql);
$msg="Your password has been emailed to to you.Please Check your email.";
$body="Dear ".$_POST["first_name"].",<br>";
$body.="Thank you for your registration at <a href=http://www.SeekYa.com target=_blank>www.SeekYa.com</a>";
$body.="<br><br>Your Login password is ";
$body.="<br><font color=blue><b>".$password."</b></font><br><br>Thanks,<br>Webmaster";
$subject=$_POST["first_name"]." Your Password for SeekYa.com";
$headers = "From: admin@SeekYa.com \nContent-Type: text/html";
mail($_POST["email"],$subject,$body,$headers);
}
else
{
$msg="This email is already in use sucker .";
}
}
?>
<?
$sql="Select * from category_master where category_status=1 order by category_name";
$cmdcat = mysql_query($sql);?>
<h1><strong>Register</strong>
</h1>
</td>
</tr>
</table>
</td>
</tr>
<b><u><?=$msg;?> </u></b>
<form name=video method=POST action="register.php">
<p>Your Email :
<input name="email" type="text" id="email" size="35">
</p>
<br>
<p>Your Name :
<input name="first_name" type="text" id="firstname" size="35">
</p>
<br>
<p>We will email your password to above email.
About Yourself(Optional) :<br />
<textarea name=user_profile rows=8 cols=50 id="userprofile" style="overflow:hidden;"></textarea>
</p>
<br>
<p> <input type=submit name=advance class=button value="Register >>"></p>
<br>
<br>
</form>
<?include("footer.php");
?>
<script>
function openWin(argURL, argSize) {
window.open(argURL, "x_win" + (new Date()).getTime(), "resizable=yes,scrollbars=yes," + argSize);
}
</script>