include('header_includes.php');
if(isset($_REQUEST['save']))
{
$first_name=$_REQUEST['first_name'];
$last_name=$_REQUEST['last_name'];
$user_name=$_REQUEST['user_name'];
$password=$_REQUEST['password'];
$address=$_REQUEST['address'];
$ward_no=$_REQUEST['ward_no'];
$user_exists=mysql_num_rows(mysql_query("SELECT * FROM tbl_cityzen WHERE user_name='$user_name'"));
if($user_exists>0)
{
$msg="THIS USERID NOT AVAILABLE. PLEASE RETRY WITH ANOTHER USERID";
}
else
{
mysql_query("INSERT INTO tbl_cityzen VALUES('','$user_name','$password','$first_name','$last_name','$address','$ward_no')")or die(mysql_error());
header("Location:index.php");
}
}
include('header_design.php');
include('left_body.php');
?>
Cityzen Registration |
|
 |
|
|
include('right_body.php');
include('footer.php');
?>