%s has the value of: %s
“, $var[‘key’], $var[‘value’]);
//}
//echo “done”;
//die ();
//check for package
$PACKAGE_USER_NAME = $_SESSION[‘PACKAGE_USER_NAME’];
if ( $PACKAGE_USER_NAME== “” ){
?>
die ();
}
$page = $_GET['page'];
$package_id = $_GET['package_id'];
if($page=="clogin")
{
$uname = $_POST['uname'];
$password = $_POST['password'];
$sql_login = "select * from community_user_login where strcmp(user_name,'$uname' )=0 and strcmp(user_password,'$password')=0 and status='Y'";
$rs_login = mysql_query($sql_login);
$numrows_login = mysql_num_rows($rs_login);
if(!$numrows_login)
{
header("location: /community-login?flag=1");
}}
if($page=="order")
{
$package_id = $_POST['package_id'];
$fname = $_POST['fname'];
$lname = $_POST['lname'];
$mname = $_POST['mname'];
$company = $_POST['company'];
$addr1 = $_POST['addr1'];
$addr2 = $_POST['addr2'];
$city = $_POST['city'];
$state1 = $_POST['state'];
$zip = $_POST['zip'];
$community_name = $_POST['community_name_bk'];
//$units = $_POST['units'];
$domain = $_POST['domain'];
$cdomain = $_POST['cdomain'];
$phone1 = $_POST['phone1'];
$phone2 = $_POST['phone2'];
$phone3 = $_POST['phone3'];
$email = $_POST['email'];
$uname = $_POST['uname'];
$password = $_POST['password'];
$mail_array = stripslashes($_POST['mail_array']); //Added By Yogesh More
if($package_id)
{
$sql_package = "select * from hoa_package where package_id=$package_id";
$rs_package = mysql_query($sql_package);
$numrows = mysql_num_rows($rs_package);
if($numrows)
{
$record_package=mysql_fetch_array($rs_package);
$package_id = $record_package[package_id];
$package_name = $record_package['package_title'];
$package_desc = $record_package['package_desc'];
$package_price = $record_package['package_price'];
}
}
}
/**Retriving states form states table**/
$sql_state_select="select *from state_master_new order by state_name";
$rs_state_select=mysql_query($sql_state_select);
/**End of Retriving Country form country table**/
function select1($x,$y) {
if($x==$y){
echo "selected";
}
} if($package_id)
{
$sql_package = "select * from hoa_package where package_id=$package_id";
$rs_package = mysql_query($sql_package);
$numrows = mysql_num_rows($rs_package);
if($numrows)
{
$record_package=mysql_fetch_array($rs_package);
$package_id = $record_package[package_id];
$package_name = $record_package['package_title'];
$package_desc = $record_package['package_desc'];
$package_price = $record_package['package_price'];
}
}
?>