" . $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 ="
1. What is your age?
 Over 65