'', 'login_password'=>''); return $arr_tph_user; } function validate_registration($arr_tph_user=array(), $validate) { global $APP_MSG; $APP_MSG = ""; $bool_valid = true; $err_msg_arr = array(); // username if(isset($validate["login_username"])) { if($arr_tph_user["login_username"] == "") { $err_msg_arr["login_username"] = "Please enter user name"; $bool_valid = false; } } //password if(isset($validate["login_password"])) { if($arr_tph_user["login_password"] == "") { $err_msg_arr["login_password"] = "Please enter password"; $bool_valid = false; } } if(count($err_msg_arr)>0) { //$err_note = "

".ERR_SORRY_NOTE."

"; $err_msgs = ""; } return $err_msg_arr; } global $SUCC_MSG; if(isset($_POST["btn_submit"])){ //product_name,address,postal_code,suburb,state,ms,rc $login_username=trim($_POST["login_username"]); $login_password=trim($_POST["login_password"]); $user_info_arr = get_user_info_arr($arr_user_info=array(),$_POST); $validate = array( 'login_username'=>array(), 'login_password'=>array()); // validate user details $error_user_reg = validate_registration($_POST,$validate); if(count($error_user_reg) == 0){ $sql="SELECT * FROM user_registration WHERE username='".$login_username."' AND password='".$login_password."'"; $result=mysql_query($sql); if(mysql_num_rows($result)>0){ $row=mysql_fetch_assoc($result); $_SESSION["username"]=$row["username"]; header("Location: ./index.php"); } else{ $login_error="Please enter correct username and password"; } } } if(isset($_POST["btn_ctg"])){ $ctg=trim($_POST["category"]); header("Location: ./ctg_search.php?ctg_id=".$ctg.""); } ?> Welcome to iNcard
Thank you for being a part of INCARD. On this page we can direct you to your Eftpos account or any of our great programmes. Please click away and explore all we and our member bussinesses have to offer.


Real Cash

User Name*
Email Address*
Password*
Confirm password*