Sign Up Page
0 || $_REQUEST["password"] != $_REQUEST["password2"]){
if(mysql_num_rows($r)>0)
echo "( Please, write another user name, this is actually used by other user ) ";
if($_REQUEST["password"] != $_REQUEST["password2"])
echo "( The passwords are not equal ) ";
$country = $_REQUEST['country_id'];
$state = $_REQUEST['state'];
$city_type = $_REQUEST['city_type'];
$city_id = $_REQUEST['city_id'];
$city = $_REQUEST['city'];
$user_name = $_REQUEST['user_name'];
$password = $_REQUEST['password'];
$first_name = $_REQUEST['first_name'];
$last_name = $_REQUEST['last_name'];
$company = $_REQUEST['company'];
$address = $_REQUEST['address'];
$locations = $_REQUEST['locations'];
$email = $_REQUEST['email'];
$url_re_website = $_REQUEST['url_re_website'];
$url_property_search = $_REQUEST['url_property_search'];
$office_phone = $_REQUEST['office_phone'];
$cell_phone = $_REQUEST['cell_phone'];
$comments = $_REQUEST['comments'];
$member_photo = $_REQUEST['member_photo'];
$company_logo = $_REQUEST['company_logo'];
}
else{
if($HTTP_POST_FILES['member_photo']['name'] != ""){
move_uploaded_file($HTTP_POST_FILES['member_photo']['tmp_name'], "users/images/".$HTTP_POST_FILES['member_photo']['name']);
}
if($HTTP_POST_FILES['company_logo']['name'] != ""){
move_uploaded_file($HTTP_POST_FILES['company_logo']['tmp_name'], "users/images/".$HTTP_POST_FILES['company_logo']['name']);
}
if($_REQUEST['city_type']=="list")
$city = $_REQUEST['city_id'];
else{
$q = "select * from cities where country_id='".$_REQUEST['country_id']."' and city_name='".$_REQUEST['city']."'";
$r = mysql_query($q, $link) or die("Failed: " . mysql_error());
if(mysql_num_rows($r)>0){
$l = mysql_fetch_array($r);
$city = $l['city_id'];
}
else{
$q = "insert cities(country_id, city_name) values('".$_REQUEST['country_id']."','".$_REQUEST['city']."')";
$r = mysql_query($q, $link) or die("Failed: " . mysql_error());
$q = "select * from cities where country_id='".$_REQUEST['country_id']."' and city_name='".$_REQUEST['city']."'";
$r = mysql_query($q, $link) or die("Failed: " . mysql_error());
$l = mysql_fetch_array($r);
$city = $l['city_id'];
}
}
$q = "insert into users (user_name, password, first_name, last_name, company, address, city, state, locations, email, url_re_website, url_property_search, office_phone, cell_phone, comments, member_photo, company_logo,country, subscription_date) values('".$_REQUEST["user_name"]."','".$_REQUEST["password"]."','".$_REQUEST["first_name"]."','".$_REQUEST["last_name"]."','".$_REQUEST["company"]."','".$_REQUEST["address"]."',".$city.",'".$_REQUEST["state"]."','".$_REQUEST["locations"]."','".$_REQUEST["email"]."','".$_REQUEST["url_re_website"]."','".$_REQUEST["url_property_search"]."','".$_REQUEST["office_phone"]."','".$_REQUEST["cell_phone"]."','".$_REQUEST["comments"]."','".$HTTP_POST_FILES['member_photo']['name']."','".$HTTP_POST_FILES['company_logo']['name']."','".$_REQUEST["country_id"]."',NOW())";
//echo $q;
$r = mysql_query($q, $link) or die("Failed: " . mysql_error());
$flag = 0;
echo "( User '".$_REQUEST["user_name"]."' signed up successfully ) ";
?>
|
|
- Featured Members -
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Beryl Gosney, RE Agent Everett WA USA
Vendor
Small (140x80)
Banner Advertising Here |
Vendor
Small (140x80)
Banner Advertising
Here |
Vendor
Small (140x80)
Banner Advertising
Here |
Vendor
Small (140x80)
Banner Advertising
Here |
Vendor
Small (140x80)
Banner Advertising
Here |
Vendor
Small (140x80)
Banner Advertising
Here |
Vendor
Small (140x80)
Banner Advertising
Here
|
Vendor
Small (140x80)
Banner Advertising
Here |
Vendor
Small (140x80)
Banner Advertising
Here
|
Vendor
Small (140x80)
Banner Advertising
Here |
|