function getProfileInfo()
{
global $HTTP_POST_VARS,$HTTP_GET_VARS, $_SESSION;
session_start();
$textFName = stripslashes($HTTP_POST_VARS['textFName']);
$_SESSION['textFName'] = $textFName;
$textLName = stripslashes($HTTP_POST_VARS['textLName']);
$_SESSION['textLName'] = $textLName;
$textHNumber = stripslashes($HTTP_POST_VARS['textHNumber']);
$_SESSION['textHNumber'] = $textHNumber;
$textWNumber = stripslashes($HTTP_POST_VARS['textWNumber']);
$_SESSION['textWNumber'] = $textWNumber;
$textEmail = stripslashes($HTTP_POST_VARS['textEmail']);
$_SESSION['textEmail'] = $textEmail;
$from = $textEmail;
$selFPlanner = stripslashes($HTTP_POST_VARS['selFPlanner']);
$_SESSION['selFPlanner'] = $selFPlanner;
$radAge = stripslashes($HTTP_POST_VARS['radAge']);
$_SESSION['radAge'] = $radAge;
$radIncome = stripslashes($HTTP_POST_VARS['radIncome']);
$_SESSION['radIncome'] = $radIncome;
$radInvestment = stripslashes($HTTP_POST_VARS['radInvestment']);
$_SESSION['radInvestment'] = $radInvestment;
$radAccount = stripslashes($HTTP_POST_VARS['radAccount']);
$_SESSION['radAccount'] = $radAccount;
$radIncomeFromInvestment = stripslashes($HTTP_POST_VARS['radIncomeFromInvestment']);
$_SESSION['radIncomeFromInvestment'] = $radIncomeFromInvestment;
$radGrowthInvest = stripslashes($HTTP_POST_VARS['radGrowthInvest']);
$_SESSION['radGrowthInvest'] = $radGrowthInvest;
$radFinancialRole = stripslashes($HTTP_POST_VARS['radFinancialRole']);
$_SESSION['radFinancialRole'] = $radFinancialRole;
$radDecline = stripslashes($HTTP_POST_VARS['radDecline']);
$_SESSION['radDecline'] = $radDecline;
$radReaction = stripslashes($HTTP_POST_VARS['radReaction']);
$_SESSION['radReaction'] = $radReaction;
$radPortDecreased = stripslashes($HTTP_POST_VARS['radPortDecreased']);
$_SESSION['radPortDecreased'] = $radPortDecreased;
$radAvgReturn = stripslashes($HTTP_POST_VARS['radAvgReturn']);
$_SESSION['radAvgReturn'] = $radAvgReturn;
$radRisk = stripslashes($HTTP_POST_VARS['radRisk']);
$_SESSION['radRisk'] = $radRisk;
$radDescribe = stripslashes($HTTP_POST_VARS['radDescribe']);
$_SESSION['radDescribe'] = $radDescribe;
$radGTime = stripslashes($HTTP_POST_VARS['radGTime']);
$_SESSION['radGTime'] = $radGTime;
}
function addProfile()
{
global $HTTP_POST_VARS,$HTTP_GET_VARS;
session_start();
$textFName = stripslashes($HTTP_POST_VARS['textFName']);
$textLName = stripslashes($HTTP_POST_VARS['textLName']);
$textHNumber = stripslashes($HTTP_POST_VARS['textHNumber']);
$textWNumber = stripslashes($HTTP_POST_VARS['textWNumber']);
$textEmail = stripslashes($HTTP_POST_VARS['textEmail']);
$from = $textEmail;
$selFPlanner = stripslashes($HTTP_POST_VARS['selFPlanner']);
$radAge = stripslashes($HTTP_POST_VARS['radAge']);
$subtotal = 0;
switch($radAge)
{
case "Over 65";
$weight_1 = 1;
break;
case "51 - 65";
$weight_1 = 2;
break;
case "41 - 50";
$weight_1 = 3;
break;
case "31 - 40";
$weight_1 = 4;
break;
case "30 and under";
$weight_1 = 5;
break;
}
//echo "
" . $radAge . " - " . $weight_1;
$radIncome = stripslashes($HTTP_POST_VARS['radIncome']);
switch($radIncome)
{
case "Less than $50,000";
$weight_2 = 1;
break;
case "$50,001 - $100,000";
$weight_2 = 2;
break;
case "$100,001 - $150,000";
$weight_2 = 3;
break;
case "Over $150,000";
$weight_2 = 5;
break;
}
//echo "
" . $radIncome . " - " . $weight_2;
$radInvestment = stripslashes($HTTP_POST_VARS['radInvestment']);
switch($radInvestment)
{
case "Less than 3 years";
$weight_3 = 0;
break;
case "3-5 years";
$weight_3 = 1;
break;
case "5-10 years";
$weight_3 = 3;
break;
case "10+ years";
$weight_3 = 5;
break;
}
//echo "
" . $radInvestment . " - " . $weight_3;
$radAccount = stripslashes($HTTP_POST_VARS['radAccount']);
switch($radAccount)
{
case "Maintain the purchasing power of your original investment";
$weight_4 = 0;
break;
case "Generate regular cash flow to meet ongoing expenses";
$weight_4 = 2;
break;
case "Grow your account and draw regular income from the account";
$weight_4 = 3;
break;
case "Grow your account and not draw any income from the account";
$weight_4 = 4;
break;
case "Aggressively grow your account to maximize its value";
$weight_4 = 5;
break;
}
//echo "
" . $radAccount . " - " . $weight_4;
$radIncomeFromInvestment = stripslashes($HTTP_POST_VARS['radIncomeFromInvestment']);
switch($radIncomeFromInvestment)
{
case "I require a high amount of current income";
$weight_5 = 1;
break;
case "I require some current income";
$weight_5 = 2;
break;
case "I require a modest degree of current income (interest plus dividends)";
$weight_5 = 3;
break;
case "I do not require any current income";
$weight_5 = 4;
break;
}
//echo "
" . $radIncomeFromInvestment . " - " . $weight_5;
$radGrowthInvest = stripslashes($HTTP_POST_VARS['radGrowthInvest']);
switch($radGrowthInvest)
{
case "Strongly agree";
$weight_6 = 0;
break;
case "Agree";
$weight_6 = 2;
break;
case "Neutral";
$weight_6 = 3;
break;
case "Disagree";
$weight_6 = 4;
break;
case "Strongly disagree";
$weight_6 = 5;
break;
}
//echo "
" . $radGrowthInvest . " - " . $weight_6;
$radFinancialRole = stripslashes($HTTP_POST_VARS['radFinancialRole']);
switch($radFinancialRole)
{
case "Low volatility, since you require positive returns each year";
$weight_7 = 0;
break;
case "Low to medium volatility, such as negative returns in 1 of every 8 years";
$weight_7 = 2;
break;
case "Medium volatility, such as negative returns in 1 of every 6 years";
$weight_7 = 3;
break;
case "Medium to high volatility, such as negative returns in 1 of every 5 years";
$weight_7 = 4;
break;
case "High volatility, such as negative returns in 1 of every 4 years";
$weight_7 = 5;
break;
}
//echo "
" . $radFinancialRole . " - " . $weight_7;
$radDecline = stripslashes($HTTP_POST_VARS['radDecline']);
switch($radDecline)
{
case "0%";
$weight_8 = 0;
break;
case "-5%";
$weight_8 = 2;
break;
case "-10%";
$weight_8 = 3;
break;
case "-15%";
$weight_8 = 4;
break;
case "More than -15%";
$weight_8 = 5;
break;
}
//echo "
" . $radDecline . " - " . $weight_8;
$radReaction = stripslashes($HTTP_POST_VARS['radReaction']);
switch($radReaction)
{
case "I would be very concerned because I cannot accept fluctuations in the value of my portfolio";
$weight_9 = 0;
break;
case "I invest for long-term growth but would be concerned about even a temporary decline";
$weight_9 = 2;
break;
case "If the amount of income I received was unaffected, it would not bother me";
$weight_9 = 3;
break;
case "I invest for long-term growth and accept temporary changes due to market fluctuation";
$weight_9 = 4;
break;
}
//echo "
" . $radReaction . " - " . $weight_9;
$radPortDecreased = stripslashes($HTTP_POST_VARS['radPortDecreased']);
switch($radPortDecreased)
{
case "Cut your losses, sell your investments and hold cash or purchase GICs with your entire account balance";
$weight_10 = 0;
break;
case "Hold on to half of your account as it is invested, and sell the other half to hold cash or purchase GICs";
$weight_10 = 2;
break;
case "Watch the portfolio, and if performance does not improve in 6 months, you will reassess the situation";
$weight_10 = 3;
break;
case "Hold the portfolio and make no changes, you understand that markets can have a number of consecutive poorly performing years";
$weight_10 = 4;
break;
case "Invest additional money in the markets to take advantage of lower current cost";
$weight_10 = 5;
break;
}
//echo "
" . $radPortDecreased . " - " . $weight_10;
$radAvgReturn = stripslashes($HTTP_POST_VARS['radAvgReturn']);
switch($radAvgReturn)
{
case "0% - 2%";
$weight_11 = 0;
break;
case "1% - 3%";
$weight_11 = 2;
break;
case "4% - 7%";
$weight_11 = 3;
break;
case "5% - 9%";
$weight_11 = 4;
break;
case "More than 9%";
$weight_11 = 5;
break;
}
//echo "
" . $radAvgReturn . " - " . $weight_11;
$radRisk = stripslashes($HTTP_POST_VARS['radRisk']);
switch($radRisk)
{
case "Be unlikely to take more risk.";
$weight_12 = 1;
break;
case "Be willing to take a little more risk with some of your overall portfolio";
$weight_12 = 2;
break;
case "Be willing to take a lot more risk with some of your overall portfolio";
$weight_12 = 3;
break;
case "Be willing to take a lot more risk with your entire portfolio";
$weight_12 = 4;
break;
}
//echo "
" . $radRisk . " - " . $weight_12;
$radDescribe = stripslashes($HTTP_POST_VARS['radDescribe']);
switch($radDescribe)
{
case "I look forward to reviewing my portfolio on a daily basis";
$weight_13 = 0;
break;
case "I make it a point to review my portfolio regularly and at least once a month";
$weight_13 = 2;
break;
case "I review my portfolio on a quarterly basis";
$weight_13 = 3;
break;
case "I only review my portfolio once a year";
$weight_13 = 4;
break;
}
//echo "
" . $radDescribe . " - " . $weight_13;
$radGTime = stripslashes($HTTP_POST_VARS['radGTime']);
$subtotal = $weight_1 + $weight_2 + $weight_3 + $weight_4 + $weight_5 + $weight_6 + $weight_7 + $weight_8 + $weight_9 + $weight_10 + $weight_11 +$weight_12 +$weight_13;
//echo "
Total - " . $subtotal;
$date = date("Y-m-d");
$code=$_SESSION['CODE'];
$valid_code=$_SESSION['VALIDCODE'];
$msg ="