0)) { $buyer_cart_ids = $objBuyer->get_cart_ids($ca_online_buyer_id); if (!(count($buyer_cart_ids) > 0)) { header("location:buyer_shopping_cart.php"); } } else { header("location:buyer_shopping_cart.php"); } $message = ""; $failed = ""; $loginFlag = @$_REQUEST["loginFlag"]; $stage = @$_REQUEST["stage"]; $email = ""; $firstname = ""; $lastname = ""; $username = ""; $gender = ""; $age = ""; $country = ""; $education = ""; $employment = ""; $field = ""; $sector = ""; $ty1="checked"; $ty2=""; $ty3=""; $ty4="checked"; $ty5=""; $email = $_REQUEST["email"]; if($stage){ $firstname = $_REQUEST["firstname"]; $lastname = $_REQUEST["lastname"]; $username = $_REQUEST["username"]; $pass = $_REQUEST["pass"]; $street = $_REQUEST["street"]; $area = $_REQUEST["area"]; $city = $_REQUEST["city"]; $postcode = $_REQUEST["postcode"]; $country = $_REQUEST["country"]; $gender = $_REQUEST["gender"]; $age = $_REQUEST["age"]; $education = $_REQUEST["education"]; $employment = $_REQUEST["employment"]; $field = $_REQUEST["field"]; $sector = $_REQUEST["sector"]; $how_found = $_REQUEST["how_found"]; $radioHtmlText = $_REQUEST["radioHtmlText"]; if($radioHtmlText=="html"){ $ty4="checked"; $ty5=""; } else if($radioHtmlText=="text"){ $ty4=""; $ty5="checked"; } $t1 = $_REQUEST["t1"]; $types1 = ""; if($t1){ $t1 = $t1.";"; $types1 .= "Career newletter, "; } else $ty1=""; $t2 = $_REQUEST["t2"]; if($t2){ $t2 = $t2.";"; $types1 .= " Weekly motivator , "; } else $ty2=""; $t3 = $_REQUEST["t3"]; if($t3){ $t3 = $t3.";"; $types1 .= " Coach-the-coach, "; } else $ty3=""; $types = $t1.$t2.$t3; if(!$t1 && !$t2 && !$t3) $types1 = "nothing, "; if ($email=="") { $message="Please enter your email address"; } else{ $t = mysql_query("select ID from $tableClient where username='$username'"); $count = mysql_num_rows($t); if($count<1) { if($stage=="Register"){ $n = date('y/m/d',time()); $insertStr = "insert into $tableClient(email,joinedDate,types,htmltext,firstname,lastname,username,passtemp,gender,age,street,area,city,postcode,country,education,employment,field,sector,how_findus) values('$email','$n','$types','$radioHtmlText','$firstname','$lastname','$username','$pass','$gender','$age','$street','$area','$city','$postcode','$country','$education','$employment','$field','$sector','$how_found')"; if(mysql_query($insertStr)){ $t1 = mysql_query("select ID from $tableClient where username='$username' and passtemp='$pass'"); $row = mysql_fetch_array($t1); $userID = $row["ID"]; session_register("userCareer"); $HTTP_SESSION_VARS["userCareer"]=$username; session_register("userCareerID"); $HTTP_SESSION_VARS["userCareerID"]=$userID; session_register("passCareer"); $HTTP_SESSION_VARS["passCareer"]=$pass; $loginFlag = "yes"; //email to member -------------- $subject = "Your login details for career analysts"; $body = "Hi $username , \n\nThank you for registration of Career Analysts. \nYour login details for Career Analysts are shown below:\nUsername: $username\npassword: $pass \nPlease keep these safe.\n\nCareer Analysts Admin"; mail($email,$subject,$body,"from:anne@careeranalysts.co.nz"); //email to Anne ---------------- $subject = "New subscriber registered for career analysts"; $body = "Dear Anne,\n\n$username has registered for Career Analysts.\n"; $body .= "For details, please view Newsletter Account section of http://www.careeranalysts.co.nz/_admin\n\nCareer Analysts System\n\n"; if ($how_found) { $body .= "How did you find us? - $how_found"; } $to = "anne@careeranalysts.co.nz"; mail($to,$subject,$body,"from:info@careeranalysts.co.nz"); include "questionnaire/_admin/class.php"; //prepare products for Order form $productsArray = array(); $requestArray = array(); foreach($buyer_cart_ids as $buyer_cart_id) { $buyer_cart_details = $objBuyer->get_cart_details($buyer_cart_id); $buyer_quantity = ($buyer_cart_details[quantity] ? $buyer_cart_details[quantity] : 1); if ($buyer_cart_details[tool_id] == Career_Pack) { $productsArray[Career_Pack] = array("title"=>"Career Pack","mode"=>$ONLINE,"price"=>$C_Pack_price,"ID"=>Career_Pack,"sample"=>"","readMore"=>""); $requestArray[Career_Pack] = array("checked"=>1,"quantity"=>$buyer_quantity); } else { $tool_details = $objBuyer->get_tool_details($buyer_cart_details[tool_id]); $productsArray[$buyer_cart_details[tool_id]] = array("title"=>$tool_details[title], "mode"=>$tool_details[mode],"price"=>$tool_details[price],"ID"=>$tool_details[ID],"sample"=>$tool_details[sample],"readMore"=>$tool_details[readMore]); $requestArray[$buyer_cart_details[tool_id]] = array("checked"=>1,"quantity"=>$buyer_quantity); } } session_register("productsArray"); $HTTP_SESSION_VARS["productsArray"] = $productsArray; session_register("requestArray"); $HTTP_SESSION_VARS["requestArray"] = $requestArray; //empty baskets $objBuyer->delete_cart($ca_online_buyer_id); $objBuyer->delete_buyer($ca_online_buyer_id); header("location:order_worldpay.php"); } else { $message = "Your Registration failed. Please, try again"; } } } else { $message = "Username $username is in use. Please try a new one."; } } } ?>
online Career Centre career check-upcareer motivators career values career talents career preferences

".$message.""; } ?>

Registration

Personal details

Fields marked with an asterix (*) are compulsory

How did you find us?
 
Please enter your name.
*First name:
*Last name:
*Username:
*Password
 
*Your address:
*Street:
*Area:
*City:
*Postcode/zip:
*Country:

The following information is required to ensure the assessment is not unintentionally discriminating against any group. It does NOT affect your results or appear in your report, however the information will be used to help us refine and improve our resources over time. This information is kept for statistical purposes only, but does help us improve services to our clients.
   
Gender:
   
Age:
   
Education:
   
Occupation:  

Please select the occupational area below which most closely represents your current occupation:

   
Employment field:
   
Sector:
   
Career Analyst Newsletter
  To receive our free careers newsletter please select from the options below:
Career newsletter Weekly motivator Coach-the-coach
  HTML Text
  * Email: