32 || $day==0) {$error.=epfx($error,"Please enter a valid day of birth.");} if ($month=="") {$error.=epfx($error,"Please enter your month of birth.");} else if(!isint($month) || $month>12 || $month==0) {$error.=epfx($error,"Please enter a valid month of birth.");} if ($year=="") {$error.=epfx($error,"Please enter your year of birth.");} else if(!isint($year)) {$error.=epfx($error,"Please enter a valid year of birth.");} if($age<18) {$error.=epfx($error,"You have to be 18 years old and above to sign up as a member.");} else if($age>=120) {$error.=epfx($error,"You are too old to sign up as a member.");} if ($marry=="") {$error.=epfx($error,"Please enter your maritial status.");} if ($gender=="") {$error.=epfx($error,"Please enter your gender.");} if ($addr=="") {$error.=epfx($error,"Address cannot be blank.");} if($phonecodetmp==0) {$error.=epfx($error,"Please enter phone code.");} if($phone=="") {$error.=epfx($error,"Please enter your phone number.");} else if(!isint($phone)) {$error.=epfx($error,"Please enter a valid phone number.");} if($pg==1){ if ($member=="") {$error.=epfx($error,"Please select a member type.");} if ($package=="") {$error.=epfx($error,"Please select a member package.");} } if ($city=="") {$error.=epfx($error,"Please enter your city.");} if ($country==0) {$error.=epfx($error,"Please enter your country.");} if ($state=="") {$error.=epfx($error,"Please enter your state.");} // if ($zip=="") {$error.=epfx($error,"Postal code cannot be blank.");} if ($pass1=="") {$error.=epfx($error,"Password cannot be blank.");} else if ($pass2=="") {$error.=epfx($error,"Retype Password cannot be blank.");} else if ($pass1!=$pass2) {$error.=epfx($error,"Both passwords are not identical.");} if ($email=="") {$error.=epfx($error,"Email address cannot be blank.");} else if (!isemail($email)) {$error.=epfx($error,"Email address is not valid.");} else{ $rs = mq("SELECT * FROM member WHERE email='".$email."'"); while($r = mfa($rs)) { if($r['paid']==0){ $sql="DELETE FROM member WHERE id=".$r['id']; mq($sql); }else{ $error.=epfx($error,"This email address has already been registered."); } } } $r=mfa(mq("SELECT * FROM gmtype_info WHERE id=".$package)); if($r['multimem']==1){ for($i=1;$i
Lost your password?

Type of Membership

"; while($r=mfa($rs)){ $num++; echo "

".$r['name']."

"; $maxtype=$num; if($num%2==0){ echo "
"; } } echo "
" ?>

Choose a package

".$r['name']."RM ".($r['promo']==0 ? $r['price']:$r['price2'])*$curr[0]."

"; $maxpackage=$num; } ?>

Info

Date of birth

Maritial Status

Married
Single

Gender

Male
Female
Current Golf Club or Sports & Recreation Club Member (if any)
Handicap

User/Password

+Additional Member