[insert_php]
session_start();
[/insert_php]

Membership to IRCC is only $50 per year and includes immediate family members residing in same house. New membership year begins from Raksha Bandhan function. Members get discounts to our events and access to member-only events. Please fill out the information below to become a member!

Please specify

[insert_php]
if($_POST[“submit”] == “Register”)
{
$_SESSION[“first_name”] = $_POST[“first_name”];
$_SESSION[“last_name”] = $_POST[“last_name”];
$_SESSION[“home_number”] = $_POST[“ph1”].$_POST[“ph2”].$_POST[“ph3”];
$_SESSION[“email”] = $_POST[“email”];
$_SESSION[“spouse_first_name”] = $_POST[“spouse_first_name”];
$_SESSION[“spouse_last_name”] = $_POST[“spouse_last_name”];
$_SESSION[“spouse_phone_number”] = $_POST[“sph1”].$_POST[“sph2”].$_POST[“sph3”];
$_SESSION[“spouse_email”] = $_POST[“spouse_email”];
$_SESSION[“membership”] = $_POST[“membership”];
$_SESSION[“submit_btn”] = “Register”;
if($_POST[“membership”] == “Annual”)
{
//header(“Location:https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BAQ69TW3TA7DQ”);
//header(“Location:https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_s-click&hosted_button_id=ZN5GNJ65NYQ9N”);

echo(‘‘);
echo(‘

‘);
echo(‘

Dear ‘.$_SESSION[“first_name”] .’ ‘. $_SESSION[“last_name”] .’,
Please click on "Pay Now" button to complete you registration

‘);
echo(‘

‘);

echo (‘






‘);
echo (‘

‘);
echo(‘

‘);

}
else
{
//header(“Location:https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=AMPLJMFLJM2MN”);
//header(“Location:https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_s-click&hosted_button_id=ZN5GNJ65NYQ9N”);

echo(‘‘);
echo(‘

‘);
echo(‘

Dear ‘.$_SESSION[“first_name”] .’ ‘. $_SESSION[“last_name”] .’,
Please click on "Pay Now" button to complete you registration

‘);
echo(‘

‘);

echo (‘






‘);
echo (‘

‘);
echo(‘

‘);

}
}// Register If Ends Here

else if($_POST[“submit”] == “Next”)
{
$mid = $_POST[“membership_id”];

$con = mysql_connect(“irccmember.db.11108466.hostedresource.com”,’irccmember’,”India@1947″);
mysql_select_db(“irccmember”,$con);

$que = “SELECT * FROM members where id=’$mid’ order by lname,fname”;
//echo $que;
$rs = mysql_query($que,$con);
//echo “error : ” . mysql_error($con);

while($r = mysql_fetch_array($rs))
{
$id=$r[‘id’];
$fname = $r[‘fname’];
$lname= $r[‘lname’];
$spouse = $r[‘spousename’];
$phone = str_replace(“-“,””,$r[‘phone’]);
$phone = “(xxx) xxx – “.substr($phone,6);
$membership =$r[‘membership’];
echo “”; echo “”;
echo “”;
echo “”;
}
echo ”

Membership-ID First Name Last Name Spouse Phone Membership Action
$id $fname $lname $spouse $phone $membership “;
if($membership != “Lifetime”){
echo “Update Membership“;
}
echo “

“;

} // Next If Ends Here

else if($_POST[“submit”] == “Search”)
{
$param = $_POST[“last_name_search”];

$con = mysql_connect(“irccmember.db.11108466.hostedresource.com”,’irccmember’,”India@1947″);
mysql_select_db(“irccmember”,$con);

$que = “SELECT * FROM members where fname like ‘%$param%’ or lname like ‘%$param%’ or spousename like ‘%$param%’ order by lname,fname”;
//echo $que;
$rs = mysql_query($que,$con);
//echo “error : ” . mysql_error($con);
echo “

“;
echo “

“;

while($r = mysql_fetch_array($rs))
{
$id=$r[‘id’];
$fname = $r[‘fname’];
$lname= $r[‘lname’];
$spouse = $r[‘spousename’];
$phone = str_replace(“-“,””,$r[‘phone’]);
$phone = “(xxx) xxx – “.substr($phone,6);
$membership =$r[‘membership’];
echo “

“;
echo “

“;
if($membership != “Lifetime”)
{
echo “

“;
}
else
{
echo “

“;
}
echo “

“;
}
echo “

Membership-ID First Name Last Name Spouse Phone Membership Action
$id $fname $lname $spouse $phone $membership Update Membership

“;

mysql_close($con);

} // Search If Ends Here
[/insert_php]